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

Uncaught FormatException: SyntaxError: Unexpected token 'U', "Unauthorized" is not valid JSON #27

Open
Dalois-30 opened this issue Jul 28, 2024 · 0 comments

Comments

@Dalois-30
Copy link

Dalois-30 commented Jul 28, 2024

Hello,
I encountered an issue when trying to authenticate using the admin API key. The application throws an Uncaught FormatException with the message "SyntaxError: Unexpected token 'U', "Unauthorized" is not valid JSON". This happens when the API response is not in JSON format but a plain text error message.

Error Stack Trace:
main.dart.js:3818 Uncaught FormatException: SyntaxError: Unexpected token 'U', "Unauthorized" is not valid JSON
at Object.c (https://s5.daltek.tech/s5/admin/app/main.dart.js:3818:19)
at Object.afS (https://s5.daltek.tech/s5/admin/app/main.dart.js:5787:9)
at a_S.r_ (https://s5.daltek.tech/s5/admin/app/main.dart.js:36559:19)
at https://s5.daltek.tech/s5/admin/app/main.dart.js:76002:20
at afY.a (https://s5.daltek.tech/s5/admin/app/main.dart.js:5148:63)
at afY.$2 (https://s5.daltek.tech/s5/admin/app/main.dart.js:34658:14)
at aff.$1 (https://s5.daltek.tech/s5/admin/app/main.dart.js:34652:21)
at adi.aga (https://s5.daltek.tech/s5/admin/app/main.dart.js:35324:34)
at adi.Fn (https://s5.daltek.tech/s5/admin/app/main.dart.js:35326:21)
at aaN.$0 (https://s5.daltek.tech/s5/admin/app/main.dart.js:34944:11)

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