Skip to content

[bug?] "Did not find CR at end of boundary" #4

@fosskers

Description

@fosskers

Thank you for reviving this package.

While it seems possible to initiate a POST with multipart/form-data, I'm hitting the dreaded problem where the server is cryptically reporting:

Did not find CR at end of boundary

when I submit the POST. I've searched around the net for people suffering the same symptoms in other contexts, but I haven't found a solution. My code looks like:

POST http://localhost:8000/runs
Content-Type: multipart/form-data; boundary=foobar123

--foobar123
Content-Disposition: form-data; name="foo"; filename="foo.txt"
Content-Type: application/octet-stream

< REDACTED/foo.txt

--foobar123
Content-Disposition: form-data; name="bar"; filename="bar.blob"
Content-Type: application/octet-stream

< REDACTED/bar.blob

--foobar123--

Does anything here stand out to you as strange? I'm following both your example under examples/ and also something similar from a coworker. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions