jshackles / Enhanced_Steam

Enhances the Steam Experience
www.EnhancedSteam.com
GNU General Public License v3.0
1.32k stars 195 forks source link

Unexpected token in JSON #1530

Open Shebuka opened 6 years ago

Shebuka commented 6 years ago

Hi, today I've got this error: https://api.enhancedsteam.com/early_access/ (200: SyntaxError: Unexpected token ] in JSON at position 7) Any idea how to fix it?

KarlCastle commented 6 years ago

I've just had this happen to me. The server response was:

{"ea": ]}

So it's server-side and we need to wait for jshackles to find the underlying cause and fix it. Since it seems to be intermittent, it may be a load problem?

jshackles commented 6 years ago

This issue is definitely server-side and happens when our servers query Steam's API to get the list of app IDs that are early access and the response we receive is malformed or incomplete. This typically happens when the Steam store is under heavy load, such as during the big sales.

I'll see if I can't add some error trapping to the server-side code so that even if the response returned is malformed, the JSON it returns to clients is at least valid, if not empty. Rather than

{"ea": ]}

It should read

{"ea": []}

Which would prevent the client code from throwing an error.

VanityFox commented 4 years ago

So, Enhanced Steam is discontinued. There is now Augmented Steam. Perhaps your requested feature/bugfix is already implemented there! If not, you could move your issue there.