Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed JSON in request body when uploading PDF files. #390

Open
chinouvm opened this issue Jan 27, 2025 · 0 comments
Open

Malformed JSON in request body when uploading PDF files. #390

chinouvm opened this issue Jan 27, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@chinouvm
Copy link

chinouvm commented Jan 27, 2025

Describe the bug

When I try to upload three different PDF files (on my selfhosted instance) I get the message: "An error occurred while creating the note, please try again."
In the docker container logs I see this:

enclosed-1  | {"level":50,"time":1737995717121,"pid":1,"hostname":"037fba6384a8","namespace":"middlewares:error","error":{"status":400},"msg":"Malformed JSON in request body"}

enclosed-1  | {"level":30,"time":1737995717122,"pid":1,"hostname":"037fba6384a8","namespace":"app","status":500,"method":"POST","path":"/api/notes","routePath":"/api/notes","durationMs":902,"msg":"Request completed"}

I even tried uploading these files to the official instance on enclosed.cc but it is the same over there.

Image

I found these browser errors on the enclosed.cc website (also on the selfhosted instance)

Image

It points to this java blob (idk if it is helpful)
https://pastebin.com/RGQaE51i

What happened?

I expected it to successfully upload the files of course.

System information

Where did you encounter the bug?

Public app (enclosed.cc)

@chinouvm chinouvm added the bug Something isn't working label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants