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

Amplify mock doesn't work with Cognito User Pool #1369

Open
2 tasks done
rdiaz82 opened this issue Mar 27, 2023 · 10 comments
Open
2 tasks done

Amplify mock doesn't work with Cognito User Pool #1369

rdiaz82 opened this issue Mar 27, 2023 · 10 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists mock p2 regression Flair label to track regressions theme:mock transferred

Comments

@rdiaz82
Copy link

rdiaz82 commented Mar 27, 2023

How did you install the Amplify CLI?

npm

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

v16.19.0

Amplify CLI Version

any version after 1.6.2

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.

nope

Describe the bug

I have installed the latest version of the CLI and when I run the amplify mock the local portal doesn't show any graphQL schema and in the top menu only appears API key there are no UserPool option.

I have tried with previous version and I checked that the latest working version was 10.6.2.

This was also reported for older versions but it was fixed: aws-amplify/amplify-cli#10578

Expected behavior

Get my graphQL schema in the local portal and being able to perform queries/mutation on local portal

Reproduction steps

  1. install latest amplify cli version
  2. execute amplify mock
  3. check local portal and check that the schema is not visible and pool options are not available

Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • 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.
@josefaidt josefaidt transferred this issue from aws-amplify/amplify-cli Mar 27, 2023
@josefaidt josefaidt added mock transferred bug Something isn't working regression Flair label to track regressions and removed pending-triage labels Mar 27, 2023
@AnilMaktala AnilMaktala added the p2 label Apr 3, 2023
@josefaidt josefaidt added the duplicate This issue or pull request already exists label Apr 18, 2023
@josefaidt
Copy link
Contributor

Hey @rdiaz82 👋 thanks for raising this! Marking as a duplicate of #1269

@josefaidt
Copy link
Contributor

To reproduce:

  1. amplify init -y
  2. amplify add api > GraphQL > use Cognito User Pools as auth
  3. amplify mock api
  4. navigate to http://localhost:20002
  5. observe error

@dwamianm
Copy link

dwamianm commented Jun 5, 2023

@josefaidt @phani-srikar ... any updates on this bug? It has really slowed development to not be able to use the tools to test locally. I am comment bombing because It has been so long and I would really love to get this bug addressed so I can be on an updated amplify version. I am still stuck on 10.6.2 just to be able to get this to work :(

@dwamianm
Copy link

Checking for updates on this issue

@michaelrios
Copy link

@josefaidt @phani-srikar any updates on this?

@araymond11
Copy link

Any updates about this issue ?

@gnpivova
Copy link

gnpivova commented Sep 15, 2023

Hi, I am also experiencing this bug on my Apple M2 Mac. For my use case, I was trying to test out the usage of the @auth directive on a GraphQL schema authenticated with Cognito user pools. When I deploy to AppSync, I see an option to log in with user pools & everything behaves as I expect:

image

However, when I try amplify mock api, it seems like I only have one option: "Auth - API Key". The UI does not allow me to update the authentication settings.

Screenshot 2023-09-15 at 11 54 31 AM

Clicking the "Update Auth" button just displays this dialog:

image

@juri-diener
Copy link

@josefaidt @phani-srikar ... any updates on this bug? It has really slowed development to not be able to use the tools to test locally. I am comment bombing because It has been so long and I would really love to get this bug addressed so I can be on an updated amplify version. I am still stuck on 10.6.2 just to be able to get this to work :(

Hello did you find a solution? I have the same Problem with amplify 12.5.0. And it's really slowing down everything.

@juri-diener
Copy link

Same issue with amplify 12.5.0!!!
Any updates on this?

Why is this important bug not fixed???
It's one of the important things, to test locally. Please periodize this.

@afnx
Copy link

afnx commented Feb 1, 2024

I created a PR (aws-amplify/amplify-cli#13555) to fix this issue. Can you please support it? We need the Amplify team to review and approve the fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists mock p2 regression Flair label to track regressions theme:mock transferred
Projects
None yet
Development

No branches or pull requests

10 participants