Skip to content

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

Open
@chinouvm

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions