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

Error on Amplify push - Error reading ResponseMappingTemplateS3Location from S3 #13302

Closed
2 tasks done
oe-bayram opened this issue Oct 4, 2023 · 6 comments
Closed
2 tasks done
Labels
pending-triage Issue is pending triage platform-push Issues related to `amplify push`

Comments

@oe-bayram
Copy link

How did you install the Amplify CLI?

npm

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

v18.16.0

Amplify CLI Version

12.5.2

What operating system are you using?

Windows

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

No manual changes made

Describe the bug

After updating the GraphQL schema I'm getting this error message:

The following resources failed to deploy:
Resource Name: QuerygetStudentauth0FunctionQuerygetStudentauth0FunctionAppSyncFunction7F78D853 (AWS::AppSync::FunctionConfiguration)
Event Type: update
Reason: Resource handler returned message: "Error occurred during operation 'Error reading RequestMappingTemplateS3Location from S3. Error message: The provided token is malformed or otherwise invalid. (Service: S3, Status Code: 400, Request ID: GV1JPW3532MCQ2TM, Extended Request ID: XxpZugolvm4pPZLWzuSdBjnyaryiQS5SvdY7RVzH1mlhP902zd7d6kYLcZnueH0Y2rjOpzgvRhY=)'." (RequestToken: ..., HandlerErrorCode: GeneralServiceException)
IsCustomResource: false

... some other resources

Resource is not in the state stackUpdateComplete

Expected behavior

The push operation should be completed successfully.

Reproduction steps

  1. Update an existing graphql schema
  2. push changes

Project Identifier

Project Identifier: 5a9e6d4d3a8b6748d9de8830f1bf13fa

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.
@oe-bayram oe-bayram added the pending-triage Issue is pending triage label Oct 4, 2023
@oe-bayram oe-bayram changed the title Error an Amplify push - Error reading ResponseMappingTemplateS3Location from S3 Error on Amplify push - Error reading ResponseMappingTemplateS3Location from S3 Oct 4, 2023
@ykethan
Copy link
Member

ykethan commented Oct 4, 2023

Hey @oe-bayram, thank you for reaching out. Wanted to get some additional information on the project; does the project utilize any temporary credentials or SSO?
How long does the push take to complete?
Is this a Amplify Studio enabled project?

@ykethan ykethan added pending-response Issue is pending response from the issue author platform-push Issues related to `amplify push` labels Oct 4, 2023
@oe-bayram
Copy link
Author

Hey,
no, our project does not utilize temporary credentials or SSO and it takes approximately 3 to 4 minutes to complete.
We also found that when the GraphQL schema remains unchanged, the push operation is successful. However, as soon as a change is made, it fails.

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Oct 4, 2023
@ykethan
Copy link
Member

ykethan commented Oct 4, 2023

Interesting, could you provide us additional information on the changes being made on the API?

@ykethan ykethan added the pending-response Issue is pending response from the issue author label Oct 4, 2023
@oe-bayram
Copy link
Author

Adding new fields, removing existing ones and even deleting a whole model (with --allow-destructive-graphql-schema-updates) causes the same issue.

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Oct 4, 2023
@oe-bayram
Copy link
Author

I'm uncertain of the specific reason, however, removing an optional field from a model before initiating a push operation resulted in the successful completion of subsequent push operations.

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

⚠️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
pending-triage Issue is pending triage platform-push Issues related to `amplify push`
Projects
None yet
Development

No branches or pull requests

2 participants