Catch 406 errors when fetching with .single() returns no result #2284
Answered
by
inian
jonohewitt
asked this question in
Questions
-
I'm trying to set up a function to check if a user has a username:
Despite this catch statement, if the user doesn't have a username yet, I get a 406 Not Acceptable error in the console:
Is it possible to catch this error and prevent it showing in the console? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
inian
Jul 13, 2021
Replies: 1 comment 21 replies
-
HI @jonohewitt, I don't think the library itself prints errors to the console. Do you have a error logging setup which does this? |
Beta Was this translation helpful? Give feedback.
21 replies
Answer selected by
inian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI @jonohewitt, I don't think the library itself prints errors to the console. Do you have a error logging setup which does this?