Textibility

FREEMIUM
Durch IdeaSynthesis | Aktualisiert 1ヶ月前 | Data
Popularität

0 / 10

Latenz

213ms

Service Level

0%

Health Check

N/A

Zurück zu allen Diskussionen

400-Invalid response data type specified

Rapid account: Nrcjersey
nrcjersey
9年前

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

Rapid account: Nrcjersey
nrcjersey Commented 9年前

perfect. thank you!

Rapid account: Ideasynthesis
ideasynthesis Commented 9年前

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 9年前

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 9年前

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 9年前

<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 9年前

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.

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen