[GH-ISSUE #652] Unable to create users in Pangolin #1550

Closed
opened 2026-04-16 08:12:56 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @hermanops on GitHub (May 3, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/652

When I try to create an internal user ([organisation][settings][access][users][create]), I get an error "Failed to invite user, timout of 10000ms exceeded". In the logs I see:

pangolin  |  ⨯ unhandledRejection:  TypeError: Converting circular structure to JSON
pangolin  |     --> starting at object with constructor 'Object'
pangolin  |     --- property 'issuerCertificate' closes the circle
pangolin  |     at JSON.stringify (<anonymous>)
pangolin  |     at Printf.template (server/logger.ts:14:28)
pangolin  |   12 |         }
pangolin  |   13 |         if (Object.keys(metadata).length > 0) {
pangolin  | > 14 |             msg += ` ${JSON.stringify(metadata)}`;
pangolin  |      |                            ^
pangolin  |   15 |         }
pangolin  |   16 |         return msg;
pangolin  |   17 |     }```
Originally created by @hermanops on GitHub (May 3, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/652 When I try to create an internal user ([organisation][settings][access][users][create]), I get an error "Failed to invite user, timout of 10000ms exceeded". In the logs I see: ```pangolin | 2025-05-03T17:22:59.801Z [error]: Unhandled Rejection: {"reason":{}} pangolin | ⨯ unhandledRejection: TypeError: Converting circular structure to JSON pangolin | --> starting at object with constructor 'Object' pangolin | --- property 'issuerCertificate' closes the circle pangolin | at JSON.stringify (<anonymous>) pangolin | at Printf.template (server/logger.ts:14:28) pangolin | 12 | } pangolin | 13 | if (Object.keys(metadata).length > 0) { pangolin | > 14 | msg += ` ${JSON.stringify(metadata)}`; pangolin | | ^ pangolin | 15 | } pangolin | 16 | return msg; pangolin | 17 | }```
Author
Owner

@miloschwartz commented on GitHub (May 4, 2025):

Do you happen to have SMTP enabled?

<!-- gh-comment-id:2848914698 --> @miloschwartz commented on GitHub (May 4, 2025): Do you happen to have SMTP enabled?
Author
Owner

@hermanops commented on GitHub (May 4, 2025):

Yes

<!-- gh-comment-id:2849068793 --> @hermanops commented on GitHub (May 4, 2025): Yes
Author
Owner

@ptweety commented on GitHub (May 4, 2025):

I have a similar issue.

$ docker compose logs -f

pangolin     | 2025-05-04T08:11:58.569Z [error]: Failed to send request
pangolin     | Stack: Error: Failed to send request
pangolin     |     at sendTokenRequest (file:///app/node_modules/arctic/dist/request.js:35:15)
pangolin     |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
pangolin     |     at async OAuth2Client.validateAuthorizationCode (file:///app/node_modules/arctic/dist/client.js:66:24)
pangolin     |     at async cg (file:///app/dist/server.mjs:31:142009)
<!-- gh-comment-id:2849075014 --> @ptweety commented on GitHub (May 4, 2025): I have a similar issue. ``` $ docker compose logs -f pangolin | 2025-05-04T08:11:58.569Z [error]: Failed to send request pangolin | Stack: Error: Failed to send request pangolin | at sendTokenRequest (file:///app/node_modules/arctic/dist/request.js:35:15) pangolin | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) pangolin | at async OAuth2Client.validateAuthorizationCode (file:///app/node_modules/arctic/dist/client.js:66:24) pangolin | at async cg (file:///app/dist/server.mjs:31:142009) ```
Author
Owner

@hermanops commented on GitHub (May 4, 2025):

creating an user without an email (so just copy the link and give it to them), doesn't work either. After using the link, I get the error below and the e-mail with the verification code is never send.

pangolin  | 2025-05-04T10:30:05.835Z [error]: Unhandled Rejection: {"reason":{}}
pangolin  |  ⨯ unhandledRejection:  TypeError: Converting circular structure to JSON
pangolin  |     --> starting at object with constructor 'Object'
pangolin  |     --- property 'issuerCertificate' closes the circle
pangolin  |     at JSON.stringify (<anonymous>)
pangolin  |     at Printf.template (server/logger.ts:14:28)
pangolin  |   12 |         }
pangolin  |   13 |         if (Object.keys(metadata).length > 0) {
pangolin  | > 14 |             msg += ` ${JSON.stringify(metadata)}`;
pangolin  |      |                            ^
pangolin  |   15 |         }
pangolin  |   16 |         return msg;
pangolin  |   17 |     }
pangolin  | 2025-05-04T10:39:13.167Z [error]: Unhandled Rejection: {"reason":{}}
pangolin  |  ⨯ unhandledRejection:  TypeError: Converting circular structure to JSON
pangolin  |     --> starting at object with constructor 'Object'
pangolin  |     --- property 'issuerCertificate' closes the circle
pangolin  |     at JSON.stringify (<anonymous>)
pangolin  |     at Printf.template (server/logger.ts:14:28)
pangolin  |   12 |         }
pangolin  |   13 |         if (Object.keys(metadata).length > 0) {
pangolin  | > 14 |             msg += ` ${JSON.stringify(metadata)}`;
pangolin  |      |                            ^
pangolin  |   15 |         }
pangolin  |   16 |         return msg;
pangolin  |   17 |     }
pangolin  | 2025-05-04T10:45:51.097Z [error]: Uncaught Exception:
pangolin  | Stack: TypeError: Converting circular structure to JSON
pangolin  |     --> starting at object with constructor 'Object'
pangolin  |     --- property 'issuerCertificate' closes the circle
pangolin  |     at JSON.stringify (<anonymous>)
pangolin  |     at Printf.template (file:///app/dist/server.mjs:25:53)
pangolin  |     at Printf.transform (/app/node_modules/logform/printf.js:11:26)
pangolin  |     at Format.transform (/app/node_modules/logform/combine.js:20:24)
pangolin  |     at DerivedLogger._transform (/app/node_modules/winston/lib/winston/logger.js:314:29)
pangolin  |     at Transform._read (/app/node_modules/readable-stream/lib/_stream_transform.js:166:10)
pangolin  |     at Transform._write (/app/node_modules/readable-stream/lib/_stream_transform.js:155:83)
pangolin  |     at doWrite (/app/node_modules/readable-stream/lib/_stream_writable.js:390:139)
pangolin  |     at writeOrBuffer (/app/node_modules/readable-stream/lib/_stream_writable.js:381:5)
pangolin  |     at Writable.write (/app/node_modules/readable-stream/lib/_stream_writable.js:302:11) {"error":{}}
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.3.0
pangolin  | Migrations to run:
pangolin  | All migrations completed successfully
pangolin  | 2025-05-04T10:45:55.054Z [info]: API server is running on http://localhost:3000
pangolin  | 2025-05-04T10:45:55.056Z [info]: Internal server is running on http://localhost:3001
pangolin  | 2025-05-04T10:45:55.839Z [info]: Next.js server is running on http://localhost:3002
pangolin  | 2025-05-04T10:46:10.887Z [info]: Establishing websocket connection
<!-- gh-comment-id:2849142437 --> @hermanops commented on GitHub (May 4, 2025): creating an user without an email (so just copy the link and give it to them), doesn't work either. After using the link, I get the error below and the e-mail with the verification code is never send. ``` pangolin | 2025-05-04T10:30:05.835Z [error]: Unhandled Rejection: {"reason":{}} pangolin | ⨯ unhandledRejection: TypeError: Converting circular structure to JSON pangolin | --> starting at object with constructor 'Object' pangolin | --- property 'issuerCertificate' closes the circle pangolin | at JSON.stringify (<anonymous>) pangolin | at Printf.template (server/logger.ts:14:28) pangolin | 12 | } pangolin | 13 | if (Object.keys(metadata).length > 0) { pangolin | > 14 | msg += ` ${JSON.stringify(metadata)}`; pangolin | | ^ pangolin | 15 | } pangolin | 16 | return msg; pangolin | 17 | } pangolin | 2025-05-04T10:39:13.167Z [error]: Unhandled Rejection: {"reason":{}} pangolin | ⨯ unhandledRejection: TypeError: Converting circular structure to JSON pangolin | --> starting at object with constructor 'Object' pangolin | --- property 'issuerCertificate' closes the circle pangolin | at JSON.stringify (<anonymous>) pangolin | at Printf.template (server/logger.ts:14:28) pangolin | 12 | } pangolin | 13 | if (Object.keys(metadata).length > 0) { pangolin | > 14 | msg += ` ${JSON.stringify(metadata)}`; pangolin | | ^ pangolin | 15 | } pangolin | 16 | return msg; pangolin | 17 | } pangolin | 2025-05-04T10:45:51.097Z [error]: Uncaught Exception: pangolin | Stack: TypeError: Converting circular structure to JSON pangolin | --> starting at object with constructor 'Object' pangolin | --- property 'issuerCertificate' closes the circle pangolin | at JSON.stringify (<anonymous>) pangolin | at Printf.template (file:///app/dist/server.mjs:25:53) pangolin | at Printf.transform (/app/node_modules/logform/printf.js:11:26) pangolin | at Format.transform (/app/node_modules/logform/combine.js:20:24) pangolin | at DerivedLogger._transform (/app/node_modules/winston/lib/winston/logger.js:314:29) pangolin | at Transform._read (/app/node_modules/readable-stream/lib/_stream_transform.js:166:10) pangolin | at Transform._write (/app/node_modules/readable-stream/lib/_stream_transform.js:155:83) pangolin | at doWrite (/app/node_modules/readable-stream/lib/_stream_writable.js:390:139) pangolin | at writeOrBuffer (/app/node_modules/readable-stream/lib/_stream_writable.js:381:5) pangolin | at Writable.write (/app/node_modules/readable-stream/lib/_stream_writable.js:302:11) {"error":{}} 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.3.0 pangolin | Migrations to run: pangolin | All migrations completed successfully pangolin | 2025-05-04T10:45:55.054Z [info]: API server is running on http://localhost:3000 pangolin | 2025-05-04T10:45:55.056Z [info]: Internal server is running on http://localhost:3001 pangolin | 2025-05-04T10:45:55.839Z [info]: Next.js server is running on http://localhost:3002 pangolin | 2025-05-04T10:46:10.887Z [info]: Establishing websocket connection ```
Author
Owner

@hermanops commented on GitHub (May 10, 2025):

in the new version (1.3.2), I was able to create an user and received the e-mail.

<!-- gh-comment-id:2869128095 --> @hermanops commented on GitHub (May 10, 2025): in the new version (1.3.2), I was able to create an user and received the e-mail.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#1550