We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have request that work in the curl in the command line but not work with your library on node js.
The request in curl command line(WORK):
curl -X POST "http://run.selfiecash.me:8080/predict" -d '{ "service":"getAge", "parameters":{ "output":{ "best":5 } }, "data":["https://scontent-frx5-1.cdninstagram.com/t51.2885-19/11856752_515409661959330_1395087449_a.jpg"] }'
The request through your library(Not Work):
var options = { url: 'http://run.selfiecash.me:8080/predict', method: "post", include:true,
headers:{ 'Accept' : 'application/json', 'Content-Length' : post_data.length, "Content-Type" : "application/json" }, data:data, }; curl.request(options, function (err2, parts) { parts = parts.split('\r\n'); var data = parts.pop(); console.log(err2,parts); });
Why i get error 400 ?
The text was updated successfully, but these errors were encountered:
try method: "POST",
Sorry, something went wrong.
No branches or pull requests
I have request that work in the curl in the command line but not work with your library on node js.
The request in curl command line(WORK):
curl -X POST "http://run.selfiecash.me:8080/predict" -d '{
"service":"getAge",
"parameters":{
"output":{
"best":5
}
},
"data":["https://scontent-frx5-1.cdninstagram.com/t51.2885-19/11856752_515409661959330_1395087449_a.jpg"]
}'
The request through your library(Not Work):
var options = {
url: 'http://run.selfiecash.me:8080/predict',
method: "post",
include:true,
Why i get error 400 ?
The text was updated successfully, but these errors were encountered: