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

Corrupted remote qraphql schema. Post syntax checks, before schema upload during amplify push. #13528

Closed
2 tasks done
BlackBoxEngineering opened this issue Jan 11, 2024 · 2 comments
Labels
duplicate If marked with duplicate, issue will be closed & original will be added for traceability pending-triage Issue is pending triage

Comments

@BlackBoxEngineering
Copy link

BlackBoxEngineering commented Jan 11, 2024

How did you install the Amplify CLI?

npm

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

18.12.1

Amplify CLI Version

12.10.1

What operating system are you using?

Windows / Mac

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

No manual changes yet

Describe the bug

Amplify did not repeat its syntax checks immediately before uploading schema.
There was an opportunity to corrupt the schema between syntax checks and file upload.

Expected behavior

I would expect a force or override command.

Reproduction steps

1.) Edited an existing schema correctly
2.) Run "Amplify Push".
3.) During the process put a single character on a line at the top of the file.
4.) Allow the process to complete.
5.) Use amplify push or pull to see error.

Project Identifier

e325a54048adef53f5a5bb7f0ba27994

Log output

# Put your logs below this line


Additional information

Error using amplify pull or push : Unexpected Name "y".
"y" was the typo on the first line of the schema

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.
@BlackBoxEngineering BlackBoxEngineering added the pending-triage Issue is pending triage label Jan 11, 2024
@BlackBoxEngineering BlackBoxEngineering changed the title Corrupted remote qraphql schema. A type was created on the file post syntax checks but before schema upload during amplify push. Corrupted remote qraphql schema. Post syntax checks, before schema upload during amplify push. Jan 11, 2024
@ykethan ykethan added the duplicate If marked with duplicate, issue will be closed & original will be added for traceability label Jan 11, 2024
@ykethan
Copy link
Member

ykethan commented Jan 11, 2024

Hey @BlackBoxEngineering , thank you for reaching. From the provided steps, the issue appears to be similar to a issue open on the API repository, which is currently marked as bug. Please refer to the comment providing a workaround.

Closing the issue as duplicate.

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 11, 2024
Copy link

⚠️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