OPSkins / trade-opskins-api

API docs for trade.opskins.com
41 stars 19 forks source link

HTML error pages being returned from the api #29

Closed ha1331 closed 6 years ago

ha1331 commented 6 years ago

How am I supposed to deal with a response that is an html-page? I had to go in, print the "error" to the console, copy paste it to a text file to see what the error was. Does not seem like something one would expect to get from an api. At the same time other sites that I tested seemed to work fine and now mine works fine too. Wasn't doing anything super experimental either, just getting the users key count, that one user that was me, the only user ever visited the site on my localhost.

https://gyazo.com/b8af3714131a1bed4764e8ffdeaa430a

Voyager-Two commented 6 years ago

I believe ICaseSite interface was unavailable for a short period. It would have returned a proper JSON response, so it's likely the page you saw is the behavior of a browser extension, some other program on your computer, or DNS provider.

ha1331 commented 6 years ago

Browser extension? I doubt it, because I'm not aware of any extension that is able to hijack traffic outside of the browser and if one existed, it surely would not be a good thing. I also have never seen this page on actual browser and I'm pretty sure I have hit a website that wasn't reachable prior to this. Anyways, this seems to have been a one time event that happened at the same time these items migrated to the wax chain.

memiamp commented 6 years ago

I've also seen this at times. The HTML is from Cloudflare and is about the destination site being unavailable. Can't remember the exact HTTP status code (maybe 554?).

rannmann commented 6 years ago

Yeah, this was a one-time thing.