Skip to content

Installing games using the app causes Drop service to crash and exit #266

Description

@F1zzyD

When attempting to install a game from the Drop app, the app publishes the message "Drop encountered an error while downloading your game: "io error: error decoding response body". This makes it impossible to install any games.

I don't believe this is an error from the app itself as the drop service spits out this log and then for closes itself while leaving the postgres service running just fine:

drop-1      | Stacktrace:
drop-1      |     ptr1=0x24adcbf7c1f9
drop-1      |     ptr2=0
drop-1      |     ptr3=0
drop-1      |     ptr4=0
drop-1      |     ptr5=0
drop-1      |     ptr6=0
drop-1      |     failure_message_object=0x7ffd76fbe740
drop-1      |
drop-1      | ==== JS stack trace =========================================
drop-1      |
drop-1      |     0: ExitFrame [pc: 0x5d8b782ac476]
drop-1      |     1: handler [0x3183264a5e29] [file:///app/app/server/chunks/routes/api/v2/client/chunk.post.mjs:~1] [pc=0x5d8b5857210f](this=0x3fb16d3419d1 <Object map = 0x560b20a8f71>,0x2231c5eccbc9 <H3Event map = 0x1b4a73fe0b1>)
drop-1      |     2: /* anonymous */ [0xe16ffba8f91](this=0x3d497c781189 <JSGlobalProxy>,0x24adcbf7c1f9 <Other heap object (LOAD_HANDLER_TYPE)>)
drop-1      |     3: StubFrame [pc: 0x5d8b7832b275]
drop-1      |     4: StubFrame [pc: 0x5d8b7823c919]
drop-1      |     5: EntryFrame [pc: 0x5d8b7820b403]
drop-1      |
drop-1      | ==== Details ================================================
drop-1      |
drop-1      | [0]: ExitFrame [pc: 0x5d8b782ac476]
drop-1      | [1]: handler [0x3183264a5e29] [file:///app/app/server/chunks/routes/api/v2/client/chunk.post.mjs:~1] [pc=0x5d8b5857210f](this=0x3fb16d3419d1 <Object map = 0x560b20a8f71>,0x2231c5eccbc9 <H3Event map = 0x1b4a73fe0b1>) {
drop-1      |   // heap-allocated locals
drop-1      |   var t = 0
drop-1      |   // expression stack (top to bottom)
drop-1      |   [33] : 0x0cfce08584e9 <FeedbackVector[150]>
drop-1      |   [32] : 0
drop-1      |   [31] : 0x067fdbded4b1 <String[6]: #pipeTo>
drop-1      |   [30] : 0x24adcbf7c1f9 <Other heap object (LOAD_HANDLER_TYPE)>
drop-1      |   [29] : 0x36245c140069 <undefined>
drop-1      |   [28] : 0x36245c140069 <undefined>
drop-1      |   [27] : 0x36245c140069 <undefined>
drop-1      |   [26] : 0x36245c140069 <undefined>
drop-1      |   [25] : 0x36245c140069 <undefined>
drop-1      |   [24] : 0
drop-1      |   [23] : 0x24adcbf7c1f9 <Other heap object (LOAD_HANDLER_TYPE)>
drop-1      |   [22] : 0x3fb16d3427d1 <FunctionContext[3]>
drop-1      |   [21] : 0x3fb16d3427d1 <FunctionContext[3]>
drop-1      |   [20] : 0x3fb16d343971 <JSArray[225]>
drop-1      |   [19] : 0x17c570f6d059 <String[1149]: "...<truncated>>">
drop-1      |   [18] : 0x36245c1400d9 <false>
drop-1      |   [17] : 0x3fb16d343941 <Array Iterator map = 0x35ce43f34d39>
drop-1      |   [16] : 0x35ce43f34db9 <JSFunction next (sfi = 0x36245c1523b1)>
drop-1      |   [15] : 0x3fb16d3427d1 <FunctionContext[3]>
drop-1      |   [14] : 0x0cfce0844599 <ModuleContext[4]>
drop-1      |   [13] : 1289
drop-1      |   [12] : 0
drop-1      |   [11] : 0x3fb16d343909 <Object map = 0x196a3d747d59>
drop-1      |   [10] : 0x17c570f6f881 <Object map = 0xcfce0844731>
drop-1      |   [09] : 0x36245c140069 <undefined>
drop-1      |   [08] : 0x24adcbf7c1f9 <Other heap object (LOAD_HANDLER_TYPE)>
drop-1      |   [07] : 0x3fb16d3513d9 <Object map = 0xcfce0850291>
drop-1      |   [06] : 0x36245c140069 <undefined>
drop-1      |   [05] : 0x3fb16d3513d9 <Object map = 0xcfce0850291>
drop-1      |   [04] : 0x17c570f6f881 <Object map = 0xcfce0844731>
drop-1      |   [03] : 0x3fb16d342779 <JSAsyncFunctionObject>
drop-1      |   [02] : 0x3fb16d3438b9 <JSArray[225]>
drop-1      |   [01] : 0x3fb16d343879 <Object map = 0x14020f27afd1>
drop-1      |   [00] : 0x17c570f683d1 <Object map = 0xcfce08446a1>
drop-1      | --------- s o u r c e   c o d e ---------
drop-1      | function async t=>{const n=await s(t,p),a=await m.fetchContext(n.context);if(!a)throw e({statusCode:400,statusMessage:"Invalid download context."});const d=[];for(const t of n.files){const r=a.manifest[t.filename];if(!r)throw e({statusCode:400,statusMessage:`Unknown file: ${t.filename}`});const o=r.lengths.s...
drop-1      |
drop-1      | -----------------------------------------
drop-1      | }
drop-1      |
drop-1      | [2]: /* anonymous */ [0xe16ffba8f91](this=0x3d497c781189 <JSGlobalProxy>,0x24adcbf7c1f9 <Other heap object (LOAD_HANDLER_TYPE)>) {
drop-1      | // optimized frame
drop-1      | --------- s o u r c e   c o d e ---------
drop-1      | <No Source>
drop-1      | -----------------------------------------
drop-1      | }
drop-1      | [3]: StubFrame [pc: 0x5d8b7832b275]
drop-1      | [4]: StubFrame [pc: 0x5d8b7823c919]
drop-1      | [5]: EntryFrame [pc: 0x5d8b7820b403]
drop-1      | =====================
drop-1      |
drop-1      | Trace/breakpoint trap (core dumped)
drop-1 exited with code 133

I have

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageNeed to confirm or create a reproducible example.

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions