Textibility

FREEMIUM
Par IdeaSynthesis | Mise à jour vor einem Monat | Data
Popularité

0 / 10

Latence

213ms

Niveau de service

0%

Health Check

N/A

Retour à toutes les discussions

400-Invalid response data type specified

Rapid account: Nrcjersey
nrcjersey
vor 9 Jahren

I am getting this error no matter what I try.
400-Invalid response data type specified

Rapid account: Nrcjersey
nrcjersey Commented vor 9 Jahren

perfect. thank you!

Rapid account: Ideasynthesis
ideasynthesis Commented vor 9 Jahren

Not a problem: thank you so much for the update and the test page. I was able to fix the error: it was an issue parsing the Content-Type field sent by the MSXML2…ServerXMLHTTP was being incorrectly parsed. Please try the request again and let me know if the errors continue.

Also, please reset your Mashape API key for security.

Take care, and thanks,

Femi.

Rapid account: Nrcjersey
nrcjersey Commented vor 9 Jahren

Sorry I didn’t get back to you sooner. You can call the command just by loading the following page (a GET request):
http://dev.addresstwo.com/custom_app/cropstalker.asp

It will execute the call exactly as I have shown in my example above, and then response.write the status and message it receives from the API. So, you can turn on logging and call this link at your leisure.

Rapid account: Ideasynthesis
ideasynthesis Commented vor 9 Jahren

Thanks for the update: that is very very strange. When I run the same request with curl:

curl -v https://ideasynthesis-textibility.p.mashape.com/barcode/decode -H "Accept: application/json" -H "X-Mashape-Key: 5TzT1jodtXmshnsOGg6uKP0qNDgzp1Ic4F0jsnhJjC5e3YfooC" -H "Content-Type: application/x-www-form-urlencoded" -d "url=http://cropstalker.com/images/00850009006004.png"

I get the following response:

{"format":"UPCA","data":"850009006004","detail":"850009006004"}

I’m assuming you are running this from an ASP.NET server? Any chance you can run a request today, and I’ll enable verbose logging for your Mashape key so I can see what is coming in over the wire?

Rapid account: Nrcjersey
nrcjersey Commented vor 9 Jahren

<p><code>Set oXMLHttp = server.Createobject(“MSXML2.ServerXMLHTTP”)</code></p>
<p><code>oXMLHttp.open “POST”, “https://ideasynthesis-textibility.p.mashape.com/barcode/decode/”, False</code></p>
<p><code>oXMLHttp.setRequestHeader “Content-Type”, “application/x-www-form-urlencoded”</code></p>
<p><code>oXMLHttp.setRequestHeader “Accept”, “application/json”</code></p>
<p><code>oXMLHttp.setRequestHeader “X-Mashape-Key”, “5TzT1jodtXmshnsOGg6uKP0qNDgzp1Ic4F0jsnhJjC5e3YfooC”</code></p>
<p><code>oXMLHttp.send “url=” & server.UrlEncode(“http://cropstalker.com/images/00850009006004.png”)</code></p>

Rapid account: Ideasynthesis
ideasynthesis Commented vor 9 Jahren

Hi there, sorry about the delay getting back to you. Could you please send me an example of the requests you are running that is failing? I’m seeing success in my internal tests, but that just indicates my internal tests are incomplete. Once you get me a sample I’ll make sure it is working properly.

Thanks,

Femi.

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires