aadeshkulkarni / figuringout

Thought Journal | NextJS | MongoDB | Shadcn
https://figuringout.life
MIT License
99 stars 95 forks source link

issue with backend url ?? #67

Closed Bhavyabhardwaj closed 6 months ago

Bhavyabhardwaj commented 6 months ago

when i replace backend url with my own backend url of cloudflare wokers it give a lot of error while i use your url it works very well ... how is it possible Screenshot 2024-05-20 204012

aadeshkulkarni commented 6 months ago

That's probably because the db schema migration hasn't happened on your db.

Execute these commands from backend directory

npx prisma generate --no-engine npm install @prisma/extension-accelerate

Restart the backend server. Should work fine.

Thanks for pointing this out. This was missed in the readme.

Bhavyabhardwaj commented 6 months ago

it is still not working don't know why. is there anything to set in clouflare workers Screenshot 2024-05-21 094359

aadeshkulkarni commented 6 months ago

Did you check if the schema is present on your postgres db after db migration ?

You can view your DB using PgAdmin

Screenshot 2024-05-21 at 1 56 44 PM
Bhavyabhardwaj commented 6 months ago

yes these are present in my db Screenshot 2024-05-21 163707

Bhavyabhardwaj commented 6 months ago

anyone who is using personal db and cloudflare workers ... this issue comes to yours or not ??

aadeshkulkarni commented 6 months ago

What is the error log on your backend console ?

Bhavyabhardwaj commented 6 months ago

this image

Bhavyabhardwaj commented 6 months ago

docker commands are also not working don't know what's wrong( i don't know docker very well )

aadeshkulkarni commented 6 months ago

this image

This isn't the error log of your backend. It's frontend error log. Check your terminal for backend logs.

Bhavyabhardwaj commented 6 months ago

yes image

Bhavyabhardwaj commented 6 months ago

error in docker compose command image

aadeshkulkarni commented 6 months ago

yes image

Error code 403 suggests that something is wrong with Auth. Check the Bearer token and also the JWT secret.