Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Runtime Error: Not Found #8

Open
pierresisson opened this issue Sep 24, 2024 · 4 comments
Open

Unhandled Runtime Error: Not Found #8

pierresisson opened this issue Sep 24, 2024 · 4 comments

Comments

@pierresisson
Copy link

pierresisson commented Sep 24, 2024

Hi,

First of all, thank you for your work, it seems to be a nice idea :)

I know this is still a WIP project but there is an error after running bun dev:
Error: Not Found

The error occurs in the file src/app/lib/client.ts at line 18, occurs during a fetch operation

typescriptCopythrow new HTTPException(response.status as StatusCode, {

image

@saeidex
Copy link

saeidex commented Sep 27, 2024

after env setup, first try this

bun run postinstall

if not work, then, create migration manually

bun x prisma migrate dev --name init

ref: https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/relational-databases/using-prisma-migrate-typescript-postgresql

@joschan21
Copy link
Collaborator

thanks @saeidex for the fix, @pierresisson can you verify this works for your setup?

@li2109
Copy link

li2109 commented Oct 31, 2024

thanks @saeidex for the fix, @pierresisson can you verify this works for your setup?

Same thing happens to me and the fix does not work. Tried with both NextJS 14 and 15

@li2109
Copy link

li2109 commented Nov 1, 2024

thanks @saeidex for the fix, @pierresisson can you verify this works for your setup?

Same thing happens to me and the fix does not work. Tried with both NextJS 14 and 15

The issue is actually unrelated to prisma but redis. As db cache extension is enabled by default and whenever redis url and token is not filled in the .env file, it will throw such an exception.

@joschan21 Maybe throw a more explicit exception stating something like "you enabled cache extension but env vars are not filled".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants