amplify-cli: Amplify mock not working in 8.0.3 with Cognito User Pools

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v17.9.0

Amplify CLI Version

8.0.3

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No changes made

Amplify Categories

api

Amplify Commands

Not applicable

Describe the bug

amplify mock opens, but the Explorer is empty.

Expected behavior

Queries, Mutations and Subscriptions are shown on the left in Explorer

Reproduction steps

  1. Start amplify mock
  2. Open AppSync Mock endpoint is running at http://...

GraphQL schema(s)

No response

Log output

No response

Additional information

Downgrade to CLI resolved this issue npm install -g @aws-amplify/cli@8.0.2

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 9
  • Comments: 18 (3 by maintainers)

Most upvoted comments

Back again on Version 11.0.3 Downgrading to version 10.6.2 works: npm install -g @aws-amplify/cli@10.6.2

Hello, the bug still happens in aws-amplify/cli@12.8.2

java version:

openjdk version "18" 2022-03-22
OpenJDK Runtime Environment (build 18+36-2087)
OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing)

Node v18.13.0.

If I downgrade to aws-amplify/cli@10.6.2 it’s works.

It seems that this problem is back on versions 10.7.x Downgrading to version 10.6.2 works: npm install -g @aws-amplify/cli@10.6.2

@akinwol @kolodi @lazpavel … 8.5.1 has fixed this issue for me!

Tried 8.4.0 and the issue is still there. Downgrading to 8.0.2 seems like the only fix for now.

The issue is still present in 8.2.0. Downgrading to 8.0.2 solved it for now.

Getting the same issue using Chrome for Mac Version 100.0.4896.127 (Official Build) (x86_64). Also tried Safari. The developer console gives “Error: Error when generating OIDC token: Buffer is not defined”

Hi, I have the same issue in 12.1.1

java:

openjdk 20.0.2 2023-07-18
OpenJDK Runtime Environment (build 20.0.2+9-78)
OpenJDK 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)

Do I need to downgrade to 10.6.2 and my java version as @Bandisa mentioned above?

I experienced the same issue.

Hardware And Software Info

Hardware

M2 MacBook Air

Amplify CLI

12.0.0

Node

v18.16.0

Java

openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-24)
OpenJDK 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

Solution

I firstly downgraded my java as per doc, which did not resolve the issue, then downgraded to @aws-amplify/cli@10.6.2 as @michaelrios mentioned above. and it worked.

I have this issue in 11.1.0 Reverting to 10.6.2 resolved it.

I have opened https://github.com/aws-amplify/amplify-category-api/issues/1427, since this is a closed issue

I can confirm that my schema is available in version 9.1.0

I can confirm that it is also working in 9.0.0.

Hey @jw4949 👋 I was able to reproduce this on the latest version of the CLI (8.0.3), and it appears we are not able to view the schema nor are we able to update auth, however queries & mutations appear to be working as expected despite the lack of explorer functionality. Downgrading to 8.0.2 mitigates this issue

8.0.2 image

8.0.3 image

image

Marking as a bug 🙂