I’m encountering an upload failure with the following error:
There was a problem with your upload
Invalid state: chunk ArrayBuffer is zero-length or detached
To investigate the issue, examine this stack trace:
at new NodeError (node:internal/errors:393)
at enqueue (node:internal/webstreams/readablestream:1122)
at pull (fetch-blob/index.js:161)
chunk.done ? ctrl.close() : ctrl.enqueue(chunk.value)
Has anyone encountered this error when submitting the app?
Hi @davidhoffman-shopify, could you help me with this issue? I’m getting an upload error during npx shop-minis submit and would appreciate your insight.
Make sure you have your CLI upgraded npx shop-minis upgrade and in which step you get this error after you submit? Share the full logs npx shop-minis submit --verbose
No, sorry! I think I’d just be speculating without logs and I haven’t seen it. Looks like such a low-level error though? Network or node version or some random corrupt file in the build?
I’d just be spamming “fresh” approaches like cleaning caches or using fresh mini project. Keep us posted!
Ok - good to hear it’s working now - Talking to the team today we shipped a change that might have fixed this but we have not been able to replicate this error internally so if anyone else ever sees this please give as many details as possible so we can try to track it down.