[GH-ISSUE #192] Non-Unicode game titles break admin library page #94

Closed
opened 2026-02-17 17:06:06 -05:00 by yindo · 0 comments
Owner

Originally created by @FurbyOnSteroids on GitHub (Aug 16, 2025).
Original GitHub issue: https://github.com/Drop-OSS/drop/issues/192

If you add a source with a folder that contains folders with non-unicode characters, the library view will break with the exception:

[request error] [unhandled] [GET] http://localhost:8991/api/v1/admin/library
drop-1      |  InvalidCharacterError: Invalid character
drop-1      |     at btoa (node:buffer:1288:11)
drop-1      |     ... 6 lines matching cause stack trace ...
drop-1      |     at async Server.<anonymous> (file:///app/app/server/chunks/nitro/nitro.mjs:1:97992) {
drop-1      |   cause: DOMException [InvalidCharacterError]: Invalid character
drop-1      |       at btoa (node:buffer:1288:11)
drop-1      |       at createGameImportTaskId (file:///app/app/server/chunks/nitro/nitro.mjs:1:333348)
drop-1      |       at file:///app/app/server/chunks/nitro/nitro.mjs:1:334104
drop-1      |       at Array.filter (<anonymous>)
drop-1      |       at Object.fetchUnimportedGames (file:///app/app/server/chunks/nitro/nitro.mjs:1:334038)
drop-1      |       at async Object.handler (file:///app/app/server/chunks/routes/api/v1/admin/index.get4.mjs:1:1082)
drop-1      |       at async Object.handler (file:///app/app/server/chunks/nitro/nitro.mjs:1:95012)
drop-1      |       at async Server.<anonymous> (file:///app/app/server/chunks/nitro/nitro.mjs:1:97992),
drop-1      |   statusCode: 500,
drop-1      |   fatal: false,
drop-1      |   unhandled: true,
drop-1      |   statusMessage: undefined,
drop-1      |   data: undefined
drop-1      | }

How to reproduce:

  • create folder structure "testfolder/こんにちは、世界/"
  • add "testfolder" as a source within drop
  • go to the admin dashboard and click "library"

I already got a working fix for this. As soon as I figure out how I do pull requests, I'll provide it.

Originally created by @FurbyOnSteroids on GitHub (Aug 16, 2025). Original GitHub issue: https://github.com/Drop-OSS/drop/issues/192 If you add a source with a folder that contains folders with non-unicode characters, the library view will break with the exception: ``` [request error] [unhandled] [GET] http://localhost:8991/api/v1/admin/library drop-1 | InvalidCharacterError: Invalid character drop-1 | at btoa (node:buffer:1288:11) drop-1 | ... 6 lines matching cause stack trace ... drop-1 | at async Server.<anonymous> (file:///app/app/server/chunks/nitro/nitro.mjs:1:97992) { drop-1 | cause: DOMException [InvalidCharacterError]: Invalid character drop-1 | at btoa (node:buffer:1288:11) drop-1 | at createGameImportTaskId (file:///app/app/server/chunks/nitro/nitro.mjs:1:333348) drop-1 | at file:///app/app/server/chunks/nitro/nitro.mjs:1:334104 drop-1 | at Array.filter (<anonymous>) drop-1 | at Object.fetchUnimportedGames (file:///app/app/server/chunks/nitro/nitro.mjs:1:334038) drop-1 | at async Object.handler (file:///app/app/server/chunks/routes/api/v1/admin/index.get4.mjs:1:1082) drop-1 | at async Object.handler (file:///app/app/server/chunks/nitro/nitro.mjs:1:95012) drop-1 | at async Server.<anonymous> (file:///app/app/server/chunks/nitro/nitro.mjs:1:97992), drop-1 | statusCode: 500, drop-1 | fatal: false, drop-1 | unhandled: true, drop-1 | statusMessage: undefined, drop-1 | data: undefined drop-1 | } ``` How to reproduce: - create folder structure "testfolder/こんにちは、世界/" - add "testfolder" as a source within drop - go to the admin dashboard and click "library" I already got a working fix for this. As soon as I figure out how I do pull requests, I'll provide it.
yindo closed this issue 2026-02-17 17:06:06 -05:00
yindo changed title from Non-Unicode game titles break admin library page to [GH-ISSUE #192] Non-Unicode game titles break admin library page 2026-06-05 14:21:23 -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#94