"SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON" when querying custom Admin endpoint #3480
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I wanted to test an authenticated request to the custom Admin endpoint that I've created:
I have a fetching function in Medusa Admin:
The error was caught in the console:
Err: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
I run
npm run build
andmedusa migrations run
, but that didn't helpCan anyone tell me what I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions