question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hitting api returns an empty object

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alfgcommented, Jun 8, 2018

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.

0reactions
alfgcommented, Jun 10, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found