Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use " in password during setup #353

Closed
RitwickVerma opened this issue Mar 17, 2025 · 2 comments
Closed

Cannot use " in password during setup #353

RitwickVerma opened this issue Mar 17, 2025 · 2 comments

Comments

@RitwickVerma
Copy link

Hi, I get the following error which I believe originates from having double quotes char in password string during setup

pangolin  | > @fosrl/pangolin@0.0.0 start
pangolin  | > NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs'
pangolin  | 
pangolin  | Starting migrations from version 1.0.1
pangolin  | Migrations to run: 
pangolin  | All migrations completed successfully
pangolin  | /app/server/lib/config.ts:170
pangolin  |                     throw new Error(
pangolin  |                           ^
pangolin  | 
pangolin  | 
pangolin  | Error: Error loading configuration file: bad indentation of a mapping entry (49:28)
pangolin  | 
pangolin  |  46 | users:
pangolin  |  47 |     server_admin:
pangolin  |  48 |         email: "{my_email_address}"
pangolin  |  49 |         password: "{my_password_with_"_ char}"
pangolin  | ---------------------------------^
pangolin  |  50 | 
pangolin  |  51 | flags:
pangolin  |     at loadConfig (/app/server/lib/config.ts:170:27)
pangolin  |     at Config.loadConfig (/app/server/lib/config.ts:180:27)
pangolin  |     at new Config (/app/server/lib/config.ts:159:14)
pangolin  |     at <anonymous> (/app/server/lib/config.ts:256:23)
pangolin  | 
pangolin  | Node.js v20.18.3
pangolin exited with code 1
@oschwartz10612
Copy link
Member

Hi thanks for opening this issue!

Unfortunately this is simply how Yaml works. You can not have double quotes surrounded by double quotes because the quotes in the middle will end the string and mess up the formatting. You could try wrapping the password in single quotes, but I would not recommend having quotes in passwords.

@oschwartz10612
Copy link
Member

I am going to close this issue but feel free to reopen if discussion is needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants