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

Possible to display better message for ScienceBase "404 Not Found" error? #259

Open
zdefne-usgs opened this issue Aug 14, 2017 · 0 comments

Comments

@zdefne-usgs
Copy link
Member

Is it possible to handle the "404 not found" errors in a more meaningful way? For example the Sciencebase page is down for maintenance at the moment and it returns "Site is down for required system maintenance." message as response for the following dataset:
http://cmgdata.usgsportals.net/#module-metadata/942d7a82-8992-4972-868e-5538a1c86cb5/bc1474bf-a6a8-4b92-a2c1-9ca130b9e644

Is it possible to reflect this with something like a pop up message instead of just the empty tiles?

if header.status_code== '404 Not Found':
   pop_up_message = response.message?
   pop_up_message.show()

snip1
snip2

@rsignell-usgs rsignell-usgs changed the title 404 Not Found error Possible to display better message for ScienceBase "404 Not Found" error? Aug 21, 2017
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

1 participant