You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a local API infrastructure with postgres. I read that I need to rename the config file:
Create a configuration file by copying the config/config-example.json to config/config.json. Put in your database credentials into config/config.json
I filled in the database credentials and placed it into ./conf/config.json. That didn;t work and I placed it into ./config/config.json in the observatory directory which I created because it was not there.
I might be newbie but even tried strace to figure out if it is looking for that config file but it isn't.
Does somebody has this local observatory API running and can point me in the right direction how to solve my error which is:
@mdn/[email protected] migrate
node -e 'import("./src/database/migrate.js").then( m => m.migrateDatabase() )'
Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string
at /usr/local/lib/node_modules/@mdn/mdn-http-observatory/node_modules/pg-pool/index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PostgresClient.ensureTable (file:///usr/local/lib/node_modules/@mdn/mdn-http-observatory/node_modules/postgrator/lib/Client.js:93:21)
at async Postgrator.migrate (file:///usr/local/lib/node_modules/@mdn/mdn-http-observatory/node_modules/postgrator/postgrator.js:256:7)
at async Module.migrateDatabase (file:///usr/local/lib/node_modules/@mdn/mdn-http-observatory/src/database/migrate.js:38:32) {
appliedMigrations: []
}
I don't know how I can made it more STRING, because it says string in the config and is between " ".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am working on a local API infrastructure with postgres. I read that I need to rename the config file:
Create a configuration file by copying the config/config-example.json to config/config.json. Put in your database credentials into config/config.json
I filled in the database credentials and placed it into ./conf/config.json. That didn;t work and I placed it into ./config/config.json in the observatory directory which I created because it was not there.
I might be newbie but even tried strace to figure out if it is looking for that config file but it isn't.
Does somebody has this local observatory API running and can point me in the right direction how to solve my error which is:
Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string
at /usr/local/lib/node_modules/@mdn/mdn-http-observatory/node_modules/pg-pool/index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PostgresClient.ensureTable (file:///usr/local/lib/node_modules/@mdn/mdn-http-observatory/node_modules/postgrator/lib/Client.js:93:21)
at async Postgrator.migrate (file:///usr/local/lib/node_modules/@mdn/mdn-http-observatory/node_modules/postgrator/postgrator.js:256:7)
at async Module.migrateDatabase (file:///usr/local/lib/node_modules/@mdn/mdn-http-observatory/src/database/migrate.js:38:32) {
appliedMigrations: []
}
I don't know how I can made it more STRING, because it says string in the config and is between " ".
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions