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

API Builds failing with unknown type error #13643

Closed
2 tasks done
ThePatrickDavis opened this issue Mar 7, 2024 · 3 comments
Closed
2 tasks done

API Builds failing with unknown type error #13643

ThePatrickDavis opened this issue Mar 7, 2024 · 3 comments
Labels
duplicate If marked with duplicate, issue will be closed & original will be added for traceability pending-triage Issue is pending triage

Comments

@ThePatrickDavis
Copy link

ThePatrickDavis commented Mar 7, 2024

How did you install the Amplify CLI?

npm

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

18.16.1

Amplify CLI Version

12.10.1

What operating system are you using?

Mac OS

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

No

Describe the bug

Without making any changes to my schema.graphql file, by builds have started failing across all back-end environments.

Expected behavior

Builds without schema changes should successfully complete

Reproduction steps

  1. Make a minor change to trigger a build
  2. The build failes

Project Identifier

13637ff9223ff117318765b2e589e9c9

Log output

2024-03-07T02:13:43.591Z [WARNING]: ✖ There was an error initializing your environment. 2024-03-07T02:13:43.598Z [INFO]: 🛑 Unknown type GetInvitationInput Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/ 2024-03-07T02:13:43.610Z [INFO]: 2024-03-07T02:13:43.610Z [INFO]: Session Identifier: 0d0609f4-48ce-4d30-a40b-eaf5cc478c60

Additional information

The type in question:

input GetInvitationInput {
code: String!
}

This is a custom type used by this custom query:

type Query {
getInvitation(input: GetInvitationInput) : InvitationResult
@auth(rules: [{allow: public}, {allow: private, provider: iam}])
@function(name: "getInvitation3-${env}")
}

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.
@ThePatrickDavis ThePatrickDavis added the pending-triage Issue is pending triage label Mar 7, 2024
@ThePatrickDavis ThePatrickDavis changed the title API Builds failing with missing type error API Builds failing with unknown type error Mar 7, 2024
@ykethan
Copy link
Member

ykethan commented Mar 7, 2024

Hey @ThePatrickDavis, thank you for reaching out. The issue is currently being tracked on aws-amplify/amplify-codegen#794.
Could you try downgrading/setting the Amplify CLI version to v12.10.1

@ykethan
Copy link
Member

ykethan commented Mar 7, 2024

Closing this issue to track aws-amplify/amplify-codegen#794.

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@ykethan ykethan added the duplicate If marked with duplicate, issue will be closed & original will be added for traceability label Mar 7, 2024
Copy link

github-actions bot commented Mar 7, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate If marked with duplicate, issue will be closed & original will be added for traceability pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

2 participants