I have installed magento2.3.0 in localhost wamp server, It is working fine.
When I'm trying to test GraphQL for PWA studio, I'm getting this error "TypeError: Failed to fetch".
-
did you ever solve this issue? I have the same problem– jonasGMar 25, 2019 at 14:30
-
facing same issue.. anyone have a solution ?– siddhrockApr 16, 2019 at 12:19
-
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review– Manashvi BirlaApr 16, 2019 at 12:48
3 Answers
You are on the right track but you can easily view Documentation when you click on Docs on the right top corner.
See screenshot with an example for the Category Query and the Documentation in the right sidebar.
- Make sure your storefront is working
- Switch to
developer
mode - Set the GraphiQL client endpoint to hostname/graphql
Does the Documentation Explorer (Docs tab) load? Do you still receive the error?
-
the storefront is working on
developer
mode on wamp server but still, the same issue is there.– MankeshDec 5, 2018 at 6:02
to put the domain like http://mage230.localhost/graphql and not http://mage230/graphql
I had the same issue, but in my case I forgot the http:// now with a url http://mydomain.test/graphql it works.
Hope it helps.