[GH-ISSUE #83] [BUG] Server attempts to create setup executable and finds undefined #41

Closed
opened 2026-02-17 17:05:59 -05:00 by yindo · 3 comments
Owner

Originally created by @quexeky on GitHub (Jun 4, 2025).
Original GitHub issue: https://github.com/Drop-OSS/drop/issues/83

To recreate:

  1. Open game version import page
  2. Enter some value into the "Setup Executable" field
  3. Delete the value
  4. Continue setup without anything in "Setup Executable" field
  5. When you press "Import", the following error will occur:
drop-1      | [request error] [unhandled] [POST] http://localhost:3000/api/v1/admin/import/version
drop-1      |  TypeError: Cannot read properties of undefined (reading 'toLowerCase')
drop-1      |     at parsePlatform (file:///app/app/server/chunks/nitro/nitro.mjs:1:238828)
drop-1      |     ... 3 lines matching cause stack trace ...
drop-1      |     at async Server.<anonymous> (file:///app/app/server/chunks/nitro/nitro.mjs:1:95215) {
drop-1      |   cause: TypeError: Cannot read properties of undefined (reading 'toLowerCase')
drop-1      |       at parsePlatform (file:///app/app/server/chunks/nitro/nitro.mjs:1:238828)
drop-1      |       at Object.handler (file:///app/app/server/chunks/routes/api/v1/admin/import/index.post2.mjs:1:1129)
drop-1      |       at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
drop-1      |       at async Object.handler (file:///app/app/server/chunks/nitro/nitro.mjs:1:92230)
drop-1      |       at async Server.<anonymous> (file:///app/app/server/chunks/nitro/nitro.mjs:1:95215),
drop-1      |   statusCode: 500,
drop-1      |   fatal: false,
drop-1      |   unhandled: true,
drop-1      |   statusMessage: undefined,
drop-1      |   data: undefined
drop-1      | }

I'm guessing that it's just setting a tag and then not resetting it when it's deleted

Originally created by @quexeky on GitHub (Jun 4, 2025). Original GitHub issue: https://github.com/Drop-OSS/drop/issues/83 To recreate: 1. Open game version import page 2. Enter some value into the "Setup Executable" field 3. Delete the value 4. Continue setup without anything in "Setup Executable" field 5. When you press "Import", the following error will occur: ``` drop-1 | [request error] [unhandled] [POST] http://localhost:3000/api/v1/admin/import/version drop-1 | TypeError: Cannot read properties of undefined (reading 'toLowerCase') drop-1 | at parsePlatform (file:///app/app/server/chunks/nitro/nitro.mjs:1:238828) drop-1 | ... 3 lines matching cause stack trace ... drop-1 | at async Server.<anonymous> (file:///app/app/server/chunks/nitro/nitro.mjs:1:95215) { drop-1 | cause: TypeError: Cannot read properties of undefined (reading 'toLowerCase') drop-1 | at parsePlatform (file:///app/app/server/chunks/nitro/nitro.mjs:1:238828) drop-1 | at Object.handler (file:///app/app/server/chunks/routes/api/v1/admin/import/index.post2.mjs:1:1129) drop-1 | at process.processTicksAndRejections (node:internal/process/task_queues:105:5) drop-1 | at async Object.handler (file:///app/app/server/chunks/nitro/nitro.mjs:1:92230) drop-1 | at async Server.<anonymous> (file:///app/app/server/chunks/nitro/nitro.mjs:1:95215), drop-1 | statusCode: 500, drop-1 | fatal: false, drop-1 | unhandled: true, drop-1 | statusMessage: undefined, drop-1 | data: undefined drop-1 | } ``` I'm guessing that it's just setting a tag and then not resetting it when it's deleted
yindo closed this issue 2026-02-17 17:05:59 -05:00
Author
Owner

@DecDuck commented on GitHub (Jun 5, 2025):

Can reproduce, I'm going to investigate

@DecDuck commented on GitHub (Jun 5, 2025): Can reproduce, I'm going to investigate
Author
Owner

@DecDuck commented on GitHub (Jun 5, 2025):

This seems to be a two-part error: the body validator was not configured properly, which was causing the parsePlatform issue (it was the first thing to run after, and was trying to access .platform on ArkErrors).

I think the bigger issue is that the frontend supplies null when the user doesn't provide a value, which causes a validation error.

@DecDuck commented on GitHub (Jun 5, 2025): This seems to be a two-part error: the body validator was not configured properly, which was causing the parsePlatform issue (it was the first thing to run after, and was trying to access .platform on ArkErrors). I think the bigger issue is that the frontend supplies `null` when the user doesn't provide a value, which causes a validation error.
Author
Owner

@quexeky commented on GitHub (Jun 5, 2025):

Yeah I think that more feedback in that form in general would be more useful

@quexeky commented on GitHub (Jun 5, 2025): Yeah I think that more feedback in that form in general would be more useful
yindo changed title from [BUG] Server attempts to create setup executable and finds undefined to [GH-ISSUE #83] [BUG] Server attempts to create setup executable and finds undefined 2026-06-05 14:21:05 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drop-OSS/drop#41