AmanNegi / FreshNest

A platform that connects local producers directly with consumers seeking fresh produce.
https://fresh-nest.netlify.app
GNU Affero General Public License v3.0
22 stars 36 forks source link

Node: Fix Error handling Object #140

Closed ayobamiseun closed 8 months ago

ayobamiseun commented 11 months ago

Fix the error object format from the backend.

Fixes: #136

AmanNegi commented 11 months ago

@ayobamiseun If you have fixed the changes feel free to click on the resolve conservation so that I can review this further.

ayobamiseun commented 11 months ago

@ayobamiseun If you have fixed the changes feel free to click on the resolve conservation so that I can review this further.

ok i will do that now. i will appreciate if you can fix the CORs issue so i can effectively use thelocalhost/api that will enable me to test locally.

AmanNegi commented 11 months ago

@ayobamiseun Could you share some information, so that I can help you diagnose the issue?

ayobamiseun commented 11 months ago

http://localhost:3000/api/auth/login net::ERR_CONNECTION_REFUSED. when i tried using "http://localhost:3000/api/auth/login " that is CORs related error

AmanNegi commented 11 months ago

Did you run your backend? and is it running on port 3000?

Ref: https://github.com/AmanNegi/FreshNest/tree/main/backend#backend-for-freshnest

Ps: Also please add a issue description, telling the issue you are fixing (with issue number) and how you'll be doing that.

ayobamiseun commented 11 months ago

Did you run your backend? and is it running on port 3000?

Ref: https://github.com/AmanNegi/FreshNest/tree/main/backend#backend-for-freshnest

Ps: Also please add a issue description, telling the issue you are fixing (with issue number) and how you'll be doing that.

my bad i did not run the backend. can you give head-up on how to do that

AmanNegi commented 11 months ago

You can find it in the backend docs:

https://github.com/AmanNegi/FreshNest/blob/main/backend/README.md

AmanNegi commented 8 months ago

Since there were no updates recently, I'll be closing this PR.