-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
multipart request fails randomly #1933
Comments
tagging as |
I have done some debugging and will continue to look into it. But no luck yet. Any pointers where I should focus? |
@rsmaan4u8 note that ideally you should follow the instructions here EXACTLY: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue - this is not a "minimal" POM. if it is simpler for us to run, resolution can be quicker |
@rsmaan4u8 sorry no pointers come to my mind at this time |
@ptrthomas Sorry I should have removed the extra deps. I have now removed those and updated the zip link. |
@rsmaan4u8 a suggestion - if you follow the write-up here, you will be able to create a Karate mock that handles the file upload: #1645 (comment) if you can get that working with your test, you will be able to prove whether it is a problem with Karate or the spring boot side / your code |
@ptrthomas thanks for pointer. I did what is suggested in the write-up and it works. So maybe a bug on spring boot side. |
@rsmaan4u8 thanks for the update ! closing. |
I initially asked this question on stack overflow Stack Overflow and I was advised to submit issue with working example.
In my tests I am using multipart requests as below . This test is hitting springboot endpoint and if I run the test repeatedly sometimes I get 500 response.
The error which I see on the server side is
I am not sure if it is defo issue on Karate side but it might be the case that Karate is not setting content length or boundry correctly which is causing server side error.
A minimal example to reproduce the issue can be downloaded below. Please note this example is based on Spring Boot Example from karate documentation.
hello-karate-master.zip
After downloading start spring boot application by running below in terminal
and to run the test run below in another terminal
The text was updated successfully, but these errors were encountered: