-
Notifications
You must be signed in to change notification settings - Fork 99
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
post file method Invalid binary file sent #673
Comments
No immediate reason/solution comes to mind. I do notice however that you seem to be sending 2 different files in the curl command ( Does the error only occur when you send zip files, or is the received content also corrupted/different when sending an image or text file? Can you enable more logging on the server side to see exactly what is received (maybe using a mock server). It would be good to see the exact differences. |
Hi @fhoeben, Both files are the same; I just simplified the file name for clarity. I also tried sending a PNG file, but it was also received as corrupted. Interestingly, when sending a Looking forward to your insights. Thanks! |
I can see same issue here also #510 (comment) getting same additional things while with postman only original data receievedI noticed that this issue seems to be similar to the one mentioned here: Issue #510. I'm experiencing the same problem where additional content is being added to the file when using FitNesse. However, when I use Postman, only the original data is received without any extra content. |
@rajneshrathor sorry but that doesn't help exactly as in that issue I also asked for more information and that was never provided. The screenshot you provide is that the content of the file as your server created based on the upload? It looks like the server is not accepting a multi part file upload but is just saving the full body as file content. Are you doing a multipart form upload from Postman, or just posting the file's content? Can you add some logging at the server level, so we can see the raw http data exchanged? Another thing you could try to do is have both the fixture and Postman send the file to For instance locally (on my Mac) I started a server listening on port 8001 from a terminal using
I get output like:
(I then have to interrupt the server using Ctrl+C) Could you do the same using both HttpTest and Postman and share both outputs? That might help understand the difference? As an example here is a multi part upload I did using Insomnia Which created the following output from
|
!2 Change ND20002 status to Conceptakte ontavegan
-|script |
|push fixture |
|start |json http test |
|set value|!-Bearer -!$accessToken |for header|Authorization |
|set value|application/octet-stream |for header|Content-Type |
|post file|http://files/nobilex/testaktedoc.zip|to |${APP_URL}/external-api/nds/v1.0/ndRequest/uploadConceptAkte/20002|
|check |response status |200 |
|show |response time |
|show |response |
|pop fixture |
Current Behavior:
Metadata Screenshots:
FitNesse metadata:

Postman metadata:

Postman Curl request -
Request for Help:
Any insights on why the file is valid via Postman but invalid via FitNesse would be appreciated.
Thanks in advance!
The text was updated successfully, but these errors were encountered: