question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphQL Explorer for "amplify mock api" stopped working after upgrading to CLI 4.13.3

See original GitHub issue

Describe the bug GraphQL Explorer for amplify mock api stopped working after upgrading to CLI 4.13.3

Amplify CLI Version 4.13.3

To Reproduce I have an existing React Native app that I successfully ran the GraphQL Explorer on amplify mock api a few days ago.

Today, I ran npm -g install @aws-amplify/cli@latest to get CLI v.4.13.3

Now when I run amplify mock api (no errors are shown in terminal) and then open GraphQL Explorer, a blank page opens and I get the following errors in Chrome Developer Tools (see screenshots below)

I downgraded the CLI back to 4.13.2, and cleared my browser cache, and it worked again.

Screenshots Working in 4.13.2 image Not working in 4.13.3 image Working again after downgrade to 4.13.2 image

Desktop (please complete the following information):

  • OS: Windows 10
  • Node Version. 13.7.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gautamkshitijcommented, Apr 22, 2020

So that works if you open localhost:20002 https://github.com/aws-amplify/amplify-cli/issues/4002

1reaction
kaustavghosh06commented, Feb 17, 2020

We’ve root-caused the issue and working on a fix for this which will be released soon. cc: @attilah

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS-Amplify/Lobby - Gitter
has anyone else had API mocking stop working after latest CLI 4.13.3 update. Clay Mitchell. @claym. do you guys grab cognito user (currentAuthenticatedUser, ......
Read more >
why dynamodb doesnt work with amplify mock? - Stack Overflow
Have you checked inside the amplify/mock-data directory? For DynamoDB storage, setup is automatically done when creating a GraphQL API with ...
Read more >
Advanced workflows - Mocking and testing - AWS Amplify Docs
Learn how to quickly test and debug without pushing all changes in your Amplify project to the cloud. Use local mocking and testing...
Read more >
Pros and cons of Amplify Mock - LinkedIn
The amplify cli starts a local GraphlQL Server, and provides a persistence layer which allows to run mutations to store data. Queries also...
Read more >
New – Local Mocking and Testing with the Amplify CLI
For this first release, the Amplify CLI can mock locally: ... In this case, when asked, I select to add a GraphQL API....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found