stelace / marketplace-demo

Open-source marketplace front-end powered by Stelace API including search, platform automation, user management, transactions, real-time messaging, ratings and much more :zap:
https://marketplace.demo.stelace.com
MIT License
114 stars 66 forks source link

401 Unauthorized #496

Closed minhtri22 closed 3 years ago

minhtri22 commented 3 years ago

Hi, I have install api server as well as marketplace demo as instruction, everything work well and when I ran the "yarn dev" the website is loaded with message 401 unauthorized listed as below:

woyuen commented 3 years ago

Hi @minhtri22, it seems all your requests to API server failed due to authorization.

Did you fill the environment variables (STELACE_PUBLISHABLE_API_KEY, STELACE_SECRET_API_KEY) related to api keys that are generated by server seeding step (yarn seed in the server project) ?

minhtri22 commented 3 years ago

Hi, thank you for your reply. I have filled those generated keys from api server into the market-demo (.evn.development) Update:

woyuen commented 3 years ago

Glad it helped! Please note the applications don't require sudo so it should have worked even without adding it.

lirongliu commented 2 years ago

Hi, I still get 401 after filling those generated keys..