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.

Better error messges

See original GitHub issue

There are several errors that can occur during the auth flow and although they are passed down to the JS, they could have a better format.

E.g. when the user cancels the popup asking for permission to open the browser and the user cancels, error.message reads as the following:

screen shot 2018-06-24 at 19 28 00

In this case, the error code is -3, which means either that the user manually canceled the OAuth authorization code flow or the auth request returns with unauthorized_client.

However, it would be very tricky to parse this error properly as it’s in a string and the error.code is just RNAppAuth Error which is not very useful.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kadikramancommented, Aug 21, 2020

I think we can call this resolved with v6.0.0 where we merged a contribution to expose the OAuth error codes

0reactions
kadikramancommented, Aug 26, 2020

Ah, fair point. Perhaps I got a bit over enthusiastic with the closing issues 😄

Since this issue was opened, we’ve had two PRs to improve error messages - one was in v5.0.0 to add consistent naming, and the other in v6.0.0 to expose the auth codes. I think it might be best to open a new issue if we need further improvement.

As you’ve just looked into this recently - would you mind explaining what the current error response is, and what you would like to see instead, and we can start a new discussion based on that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Designing Better Error Messages UX - Smashing Magazine
Designing Better Error Messages UX · Not All Error Messages Are Equal # · Never Rely On Red Color Alone # · Avoid...
Read more >
Best 10 Examples And Guidelines For Error Messages
Best 10 Examples And Guidelines For Error Messages · 1. Keep language clear and concise · 2. Keep user actions specific and logical...
Read more >
How to Write Good Error Messages - UX Planet
1. Be Clear And Not Ambiguous · 2. Be Short And Meaningful · 3. Don't Use Technical Jargons · 4. Be Humble —...
Read more >
Error Messages: Examples, Best Practices & Common Mistakes
1. Write for humans (be understandable) ; 2. Make sure the message is helpful ; 3. Use a touch of humor ; 4....
Read more >
When life gives you lemons, write better error messages
This is an example of a good error message. It explains what happened and why, provides reassurance, is empathetic, helps the user fix...
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