Skip to content

Improve error handling on invalid API key#42

Open
mvaaltola wants to merge 2 commits intoGispoCoding:masterfrom
mvaaltola:handle-invalid-api-key
Open

Improve error handling on invalid API key#42
mvaaltola wants to merge 2 commits intoGispoCoding:masterfrom
mvaaltola:handle-invalid-api-key

Conversation

@mvaaltola
Copy link
Contributor

Handle invalid API keys gracefully and show the user an error message.
Fixes #19

Testing

  • Open the plugin for the first time. The settings menu opens. Input an invalid API key:
image
  • Hit OK. The following error message is shown and the user is returned to the settings menu:
image
  • Input a wrong API key again. Same error message as above.

  • Re-open the plugin. Input a correct API key. Open the settings menu, change the API key to invalid, hit OK.
  • Try to download data. The following error message is shown:
image
  • Re-open the plugin. The API key error message is shown and the Settings menu opens

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

Successfully merging this pull request may close these issues.

Wrong identification key leading to Python errors

1 participant