-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cannot send binary payload #23
Comments
Patching the -bodyData.body = fs.createReadStream(file);
+bodyData.body = fs.readFileSync(file); Edit: removed encoding |
@YYOANN Just ran a test with node Here's a sample suite I tried with.
If you are still having issues, please update the issue with an attachment containing your suite so I can take look. Note: Make sure that the file exists at |
I tried to reproduce the issue today and now everything is working as expected, locally and in docker, I can't figure out what was wrong. I'll update the issue if I find something. |
It seams impossible to send binary payload.
I have directly checked following example:
And it sends
[object Object]
as body payload.Further inspection show that it's a
fs.ReadStream
object (created inspec.js:515
?).Did I missconfigured something or is it a bug or not fully implemented feature?
Tested with
node13
andjust-api@1.2.5
.The text was updated successfully, but these errors were encountered: