mercurjs / mercur

JavaScript Open Source
Multi-Vendor Marketplace Accelerator build on top of Medusa.js. Mercur simplifies the path to your own customized, multi-vendor marketplace.
https://mercurjs.com
MIT License
206 stars 23 forks source link

Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string #22

Open mastingo opened 3 months ago

mastingo commented 3 months ago

Ive tried to set up marketplace to no avail need help please.

Steps to recreate bug:

  1. delete old marketplace and medusa repo.

  2. run npx mercurjs repo_name.

  3. cd into repo_name /api run yarn install.

  4. run yarn build.

  5. run npx medusa migrations run

  6. get error SASL: SCRAM-SERVER-FIRST-MESSAGE: bug

  7. The admin panel does spin up on local host but i cant log in with supersecret, the console says its unable to connect to port 9000 and the ui just says 'doesnt recognize credentials'.

nb: I have nothing to lose in the project so if someone could give me an in detail guide to get this running on my local host ill delete everything and start again and set it up right

saimarshadsaim31 commented 3 months ago

I think it is related to postgress database URL missing in your env or the string being incorrect. Not completely sure its just a guess.

adiwastu commented 2 months ago

Where is your .env file located? I got similar error, and moving the file to api/ solves it. It actually made sense though since we're running the seed command on that folder

ehtisham-afzal commented 1 month ago

it worked for me on putting database url into my api folder .env DATABASE_URL=<your remot database url >