alfg / overwatch-api

:earth_americas: An Unofficial Overwatch HTTP API
https://owapi.io/docs/
MIT License
148 stars 27 forks source link

Hitting api returns an empty object #40

Closed bencoullie closed 6 years ago

bencoullie commented 6 years ago

When I hit the api with an account code I know exists, such as, http://ow-api.herokuapp.com/profile/pc/us/VoA-1535 or http://ow-api.herokuapp.com/profile/pc/us/cupchip-2806 I get an empty object response (no error or explanation).

This only happens sometimes. Other times it works fine with the same credentials. This only started happening a few days ago as far as I can tell.

I can try another account (such as http://ow-api.herokuapp.com/profile/pc/us/OctopusPrime-1324 and it works fine. It only seems to be happening to some accounts some of the time.

Any ideas? My initial thought is rate limiting (though I probably only hit it a few times a day). Do you have rate limiting set up per account by any chance?

alfg commented 6 years ago

Thanks for reporting. Checking into this!

alfg commented 6 years ago

The Overwatch player profile page seems to be returning no results right now as well: https://playoverwatch.com/en-us/career/pc/VoA-1535

I don't have any rate limiting in place.

Unfortunately, I cannot parse the profile/stats until the Overwatch player page is resolving.

alfg commented 6 years ago

Most of the api calls right now are returning the same results. We'll probably have to wait until the overwatch page issues are resolved.

alfg commented 6 years ago

Seems to be working again.

bencoullie commented 6 years ago

Thanks for looking into this! I appreciate it.

Yeah I see, it seems to be official blizzard site issues.

Its still occurring for me: I'm getting a 503 service unavailable when I hit your API and when I try visit the page manually (503: CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.).

🤞 they fix their shit. I'll keep checking in in the hopes it gets going again.

alfg commented 6 years ago

Yeah, hopefully they resolve their issues soon. I noticed other similar overwatch projects are experiencing issues as well.