-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
request with multipart/form-data is not being accepted at endpoint #626
Comments
@kiner-shah it is very similar. I didn't see a solution to that one besides downgrading crow. I downgraded to v1.0+3 and that seemed to fix the issue. |
I think the issue is due to HTTP header "Expect: 100-continue" sent by curl automatically if uploaded file is bigger than some fixed size. I can reproduce with :
By forcing Expect:100-continue, I have the same issue : from read(1) with description: "invalid HTTP method" When I remove the header, and send a small file, it works !
|
I just revert the commit 0aff1bc Prevent HTTP pipelining which Crow doesn't support. And the issue is solved ! It seems that fixing this vulnerability leads to critical regression |
@lkoeller did you make a merge request for this fix? If not could you? |
Hi
No, not yet. I just revert the commit.
I could do a merge request in a few day after vacation
Le lun. 26 juin 2023 à 20:22, Kory ***@***.***> a écrit :
… @lkoeller <https://github.com/lkoeller> did you make a merge request for
this fix? If not could you?
—
Reply to this email directly, view it on GitHub
<#626 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB26BSUVZO2FCLPMFO7U6XTXNHHPTANCNFSM6AAAAAAXPQY7ZU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello! I'm facing this issue. Any updates on a fix? |
Hello
You have just to revert this commit : 0aff1bc Prevent HTTP pipelining which
Crow doesn't support.
And it will work again.
Best Regards
Le ven. 4 août 2023 à 21:26, German Robayo ***@***.***> a
écrit :
… Hello!
I'm facing this issue. Any updates on a fix?
—
Reply to this email directly, view it on GitHub
<#626 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB26BSU4RUTGSBNG3PIYGY3XTVEE7ANCNFSM6AAAAAAXPQY7ZU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
All,
I am having an issue where I am trying to upload a file with size 36M and it is not reaching my endpoint at all. However, if I send another file with the same format that is of size 57K it hits the endpoint and succeeds. I've been reading into the stream_threshold() and how it is set to a default value of 1MB. I increased this value to 45MB by using the code below:
app.stream_threshold(45 * 1024 * 1024);
but I'm not having any luck.
This is what the endpoint definition looks like:
CROW_ROUTE(app, "/v1/job/<string>/event/<string>/upload") .methods(crow::HTTPMethod::POST) ([this](const crow::request& req, string job_id, string id) { }
I am sending the following request:
curl <ip addr>:5002/v1/job/${job_id}/event/${event_id}/upload -i -F 'file=@cases/1.8.0/test.nc;'
When I use the verbose flag I receive the following output:
Here is the log output from the CROW Server when I make this request:
Note I took out the IP address information from the output of the curl request.
I have also tried increasing the max time to allow the transfer to take and that didn't help either.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: