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

app crashes on invalid uuid #258

Open
ReddixT opened this issue Jan 5, 2023 · 0 comments
Open

app crashes on invalid uuid #258

ReddixT opened this issue Jan 5, 2023 · 0 comments
Assignees

Comments

@ReddixT
Copy link
Member

ReddixT commented Jan 5, 2023

Describe the bug
app crashes when you try to access any wildcard page example "/test"

To Reproduce
Steps to reproduce the behavior:

  1. sign in
  2. manually enter random url after root

Additional context

[lumium-api]   parameters: [ 'signin' ],
[lumium-api]   driverError: error: invalid input syntax for type uuid: "signin"
[lumium-api]       at Parser.parseErrorMessage (/home/luan/lumium/node_modules/pg-protocol/src/parser.ts:369:69)
[lumium-api]       at Parser.handlePacket (/home/luan/lumium/node_modules/pg-protocol/src/parser.ts:188:21)
[lumium-api]       at Parser.parse (/home/luan/lumium/node_modules/pg-protocol/src/parser.ts:103:30)
[lumium-api]       at Socket.<anonymous> (/home/luan/lumium/node_modules/pg-protocol/src/index.ts:7:48)
[lumium-api]       at Socket.emit (node:events:513:28)
[lumium-api]       at Socket.emit (node:domain:489:12)
[lumium-api]       at addChunk (node:internal/streams/readable:315:12)
[lumium-api]       at readableAddChunk (node:internal/streams/readable:289:9)
[lumium-api]       at Socket.Readable.push (node:internal/streams/readable:228:10)
[lumium-api]       at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
[lumium-api]     length: 138,
[lumium-api]     severity: 'ERROR',
[lumium-api]     code: '22P02',
[lumium-api]     detail: undefined,
[lumium-api]     hint: undefined,
[lumium-api]     position: undefined,
[lumium-api]     internalPosition: undefined,
[lumium-api]     internalQuery: undefined,
[lumium-api]     where: "unnamed portal parameter $1 = '...'",
[lumium-api]     schema: undefined,
[lumium-api]     table: undefined,
[lumium-api]     column: undefined,
[lumium-api]     dataType: undefined,
[lumium-api]     constraint: undefined,
[lumium-api]     file: 'uuid.c',
[lumium-api]     line: '134',
[lumium-api]     routine: 'string_to_uuid'
[lumium-api]   },
[lumium-api]   length: 138,
[lumium-api]   severity: 'ERROR',
[lumium-api]   code: '22P02',
[lumium-api]   detail: undefined,
[lumium-api]   hint: undefined,
[lumium-api]   position: undefined,
[lumium-api]   internalPosition: undefined,
[lumium-api]   internalQuery: undefined,
[lumium-api]   where: "unnamed portal parameter $1 = '...'",
[lumium-api]   schema: undefined,
[lumium-api]   table: undefined,
[lumium-api]   column: undefined,
[lumium-api]   dataType: undefined,
[lumium-api]   constraint: undefined,
[lumium-api]   file: 'uuid.c',
[lumium-api]   line: '134',
[lumium-api]   routine: 'string_to_uuid'
[lumium-api] }
[lumium-api] [nodemon] app crashed - waiting for file changes before starting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants