[GH-ISSUE #800] Mobile image uploads are broken #520

Closed
opened 2026-03-02 11:50:32 +03:00 by kerem · 5 comments
Owner

Originally created by @greg121 on GitHub (Jan 1, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/800

Describe the Bug

I tried to upload an image using the Android app and got an error. Using the Web Interface worked.

Steps to Reproduce

Upload image

Expected Behaviour

Image being tagged

Screenshots or Additional Context

⨯ TypeError: Failed to parse body as FormData. at node:internal/deps/undici/undici:5668:27 at successSteps (node:internal/deps/undici/undici:5712:27) at fullyReadBody (node:internal/deps/undici/undici:4609:9) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async consumeBody (node:internal/deps/undici/undici:5721:7) at async c (/app/apps/web/.next/server/app/api/assets/route.js:1:2279) at async /app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:36957 at async eC.execute (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:27552) at async eC.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:38291) at async doRender (/app/node_modules/next/dist/server/base-server.js:1352:42)

Device Details

Xiaomi Mi 11 Lite 5G NE

Exact Hoarder Version

0.20

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
Originally created by @greg121 on GitHub (Jan 1, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/800 ### Describe the Bug I tried to upload an image using the Android app and got an error. Using the Web Interface worked. ### Steps to Reproduce Upload image ### Expected Behaviour Image being tagged ### Screenshots or Additional Context `⨯ TypeError: Failed to parse body as FormData. at node:internal/deps/undici/undici:5668:27 at successSteps (node:internal/deps/undici/undici:5712:27) at fullyReadBody (node:internal/deps/undici/undici:4609:9) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async consumeBody (node:internal/deps/undici/undici:5721:7) at async c (/app/apps/web/.next/server/app/api/assets/route.js:1:2279) at async /app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:36957 at async eC.execute (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:27552) at async eC.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:38291) at async doRender (/app/node_modules/next/dist/server/base-server.js:1352:42)` ### Device Details Xiaomi Mi 11 Lite 5G NE ### Exact Hoarder Version 0.20 ### Have you checked the troubleshooting guide? - [X] I have checked the troubleshooting guide and I haven't found a solution to my problem
kerem 2026-03-02 11:50:32 +03:00
Author
Owner

@sebboer commented on GitHub (Jan 2, 2025):

Same on IOS

<!-- gh-comment-id:2567214502 --> @sebboer commented on GitHub (Jan 2, 2025): Same on IOS
Author
Owner

@MohamedBassem commented on GitHub (Jan 2, 2025):

Yeah, I can repro on iOS as well. Thanks for the bug report.

<!-- gh-comment-id:2567595296 --> @MohamedBassem commented on GitHub (Jan 2, 2025): Yeah, I can repro on iOS as well. Thanks for the bug report.
Author
Owner

@MohamedBassem commented on GitHub (Jan 13, 2025):

Ok, so it seems like we're hitting: https://github.com/nodejs/undici/issues/3760

still trying to figure out when it's going to get released.

<!-- gh-comment-id:2586012953 --> @MohamedBassem commented on GitHub (Jan 13, 2025): Ok, so it seems like we're hitting: https://github.com/nodejs/undici/issues/3760 still trying to figure out when it's going to get released.
Author
Owner

@MohamedBassem commented on GitHub (Jan 13, 2025):

Ok, I wasted tooooo long on this, and apparently, this got fixed in react native in github.com/facebook/react-native@f791fb9e66 :(

<!-- gh-comment-id:2586052510 --> @MohamedBassem commented on GitHub (Jan 13, 2025): Ok, I wasted tooooo long on this, and apparently, this got fixed in react native in https://github.com/facebook/react-native/commit/f791fb9e660fe15bccf55029045c48f4bbcbc5cb :(
Author
Owner

@timothyvermeiren commented on GitHub (Jan 13, 2025):

@MohamedBassem apologies if this is a weird question, but I'm not very familiar with this technology stack... does that mean that by updating the dependencies (and specifically react-native) this will later automatically be fixed in hoarder-app?

<!-- gh-comment-id:2586734358 --> @timothyvermeiren commented on GitHub (Jan 13, 2025): @MohamedBassem apologies if this is a weird question, but I'm not very familiar with this technology stack... does that mean that by updating the dependencies (and specifically react-native) this will later automatically be fixed in `hoarder-app`?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#520
No description provided.