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

Request to <endpoint>/graphql fail #102

Open
alextaymx opened this issue Nov 21, 2021 · 3 comments
Open

Request to <endpoint>/graphql fail #102

alextaymx opened this issue Nov 21, 2021 · 3 comments

Comments

@alextaymx
Copy link

alextaymx commented Nov 21, 2021

Error: Unexpected token < in JSON at position 0

May I know what caused this issue? I installed the plugins listed on the README, but somehow the endpoint still couldnt work

@alextaymx
Copy link
Author

ApolloError: Unexpected token < in JSON at position 0
at new ApolloError (/Users/alex/GitHub/woo-next/node_modules/@apollo/client/errors/errors.cjs.js:31:28)
at /Users/alex/GitHub/woo-next/node_modules/@apollo/client/core/core.cjs.js:1492:19
at both (/Users/alex/GitHub/woo-

response: Response {
size: 0,
timeout: 0,
[Symbol(Body internals)]: [Object],
[Symbol(Response internals)]: [Object]
},
statusCode: 404,
bodyText: '\n' +
'\n' +
'<title>404 Not Found</title>\n' +
'\n' +
'

Not Found

\n' +
'

The requested URL was not found on this server.

\n' +
'\n'
},
extraInfo: undefined,
page: '/'
}

@imranhsayed
Copy link
Owner

@edu-damasceno
Copy link

I had a "maintenance mode" plugin active and I was having the same issue. I deleted it and it worked.

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

3 participants