Hitting api returns an empty object
See original GitHub issueWhen 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?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
REST API Best practice ? return Empty object vs no object
The better practice is to send an empty array. The reason is when someone calls your API and expect expiring_credits ...
Read more >What does an empty object API response mean? #420 - GitHub
The empty object is needed because a valid JSON response is needed. It's not to prevent something breaking in backbone specifically.
Read more >Use empty string, null or remove empty property in API request ...
TLDR; Remove null properties. The first thing to bear in mind is that applications at their edges are not object-oriented (nor functional if ......
Read more >HTTP status code for an empty result - Google Groups
My question is whether to return a 200 or a 404 when a list returned by a call is empty. e.g. user 123...
Read more >Bulk API 2.0 returns failed and success results with empty field ...
You may notice or receive blank value (" ") for the fields when hitting the resources for failed / success results although the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Yeah, hopefully they resolve their issues soon. I noticed other similar overwatch projects are experiencing issues as well.