-
-
Notifications
You must be signed in to change notification settings - Fork 302
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 request and conversion to binary type #751
Comments
Hello! You can use to_binary function: Hope it helps, |
Does not work: |
@errshoff didn't you try to pass |
@3timeslazy I tried. The result is the same: |
Same issue. |
Hi, @leopku, you can try to add by yourself something like this:
}) The reason of this error is absence of to_binary in ferret |
@Gusyatnikova thanks a lot. |
Hi all!
I need to send a POST request from my script. This is example code:
But when:
$ ferret exec post.fql
I get the following error:
invalid type: expected [binary], but got string: .body: IO::NET::HTTP::POST({url:"https://httpbin.org/post",body:JSON_STRINGIFY(req),headers:{"Content-Type":"application/json"}}) at 3:13
And that's right...
But how do I convert string to binary?
I did not find such a function in the documentation
The text was updated successfully, but these errors were encountered: