[GH-ISSUE #353] Cannot use " in password during setup #3351

Closed
opened 2026-04-20 07:17:27 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @RitwickVerma on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/353

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
Originally created by @RitwickVerma on GitHub (Mar 17, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/353 Hi, I get the following error which I believe originates from having double quotes char in password string during setup ```pangolin | 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 ```
Author
Owner

@oschwartz10612 commented on GitHub (Mar 17, 2025):

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.

<!-- gh-comment-id:2729686008 --> @oschwartz10612 commented on GitHub (Mar 17, 2025): 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.
Author
Owner

@oschwartz10612 commented on GitHub (Mar 17, 2025):

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

<!-- gh-comment-id:2729702078 --> @oschwartz10612 commented on GitHub (Mar 17, 2025): I am going to close this issue but feel free to reopen if discussion is needed!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#3351