Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reporting for JSON errors #100

Open
squeetus opened this issue Apr 5, 2017 · 3 comments
Open

Error reporting for JSON errors #100

squeetus opened this issue Apr 5, 2017 · 3 comments

Comments

@squeetus
Copy link
Contributor

squeetus commented Apr 5, 2017

The client receives a specific error when the POSTed JSON fails on the server:

There was a problem sending the visualization representation to the server. Are you connected to the Internet? Check your network settings. Otherwise, maybe the central DataFormatters server is down. Try again later.
Server reported an error while serving request: SyntaxError: Unexpected token [TOKEN] in JSON at position [POSITION] invalid syntax for raw body of request

We could trap SyntaxError: Unexpected token ... errors and instruct users to check their node labels for special characters to give better feedback.

@AlecGoncharow
Copy link
Contributor

Is this safe to close?

@squeetus
Copy link
Contributor Author

squeetus commented Jan 4, 2019

The server has been modified to give better response codes in the assignment api here BridgesUNCC/bridgesAPI@cc16bba.

However, the client has not been updated to account for these. At least in this Java version, we only watch for 503 and >400 status codes.

Recommend keeping open, but this is not crucial.

@esaule
Copy link
Member

esaule commented Jan 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants