A
A
Askhat Baltabaev2018-11-14 09:16:45
React
Askhat Baltabaev, 2018-11-14 09:16:45

Why is An unexpected error has occurred in React/Next/GraphQL?

I have a problem that I can't solve for a few days now.
Problem in routings of a neksta. It turns out that I use graphql apollo for queries and when I just go to the page at the address all the data gets, but when I go through Link prefetch href="/shop/catalog" then the error "An unexpected error has occurred." then everything is fine. What is most interesting, everything works for me locally, but when I run it on the remote server, this error occurs.
Here is the error:
5bebbdbcd9b46520541068.png5bebbdc6deade660770146.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yanis_kondakov, 2018-11-14
@yanis_kondakov

Mixed content error.
What to try to do:
1) Connect on https server
2) Make all links relative

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question