-
Notifications
You must be signed in to change notification settings - Fork 79
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
Unable to deploy subscription auth resolvers after upgrading amplify cli #1492
Comments
Hey @rezab777, Thank you for reporting this issue. Please try the instructions provided below and inform us if they successfully resolve the issue you are facing,
|
Thank you @AnilMaktala . The solution you suggested fixed the issue with pushing the resolvers to the cloud . I am still seeing an error when starting a subscription though. Here's the error:
If this is not helpful, please let me know if I can provide more info . Thanks |
Hey @rezab777, Sorry for the delay. Would it be possible for you to share the Subscription.onCreateCustomer.auth.1.req.vtl file with us? |
Hi @AnilMaktala
|
Hi @rezab777, Thank you for sharing the VTL. Could you please clarify the type of authentication the logged-in user is using to initiate the subscription? Specifically, we would like to know if the user belongs to the admin Cognito user group or if they are the owner of the create mutation. |
Hi @AnilMaktala Apologies for the confusion and lack of adequate testing on our end. To clarify :
Please let me know if I can provide further information. Thanks |
@AnilMaktala |
Hey @rezab777,Thank you for sharing the diagnose report. Upon reviewing the customer model, it appears that only the |
@AnilMaktala |
Hey @rezab777, Sorry for delay. Are you still experiencing this issue? |
Hey 👋 , This issue is being closed due to inactivity. If you are still experiencing the same problem and need further assistance, please feel free to leave a comment. This will enable us to reopen the issue and provide you with the necessary support. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.0.0
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
Describe the bug
I had been using amplify cli version 10.5.1 until I upgraded to the latest version i.e. amplify cli version 12.0.0 in order to use the
--minify
flag ( the flag did not work as expected in version 10.5.1) .We are overriding all the auth resolvers as we're using Lambda authorization.
I have noticed that there has been additional logic added to the auth resolvers in the newest version (12.0.0) , namely to search (related to the @searchable directive) and subscription (graphql) auth resolvers .
So I went ahead and updated the search and subscriptions resolvers so they include the latest updates .
Here is what the issue is:
I was able to push the auth resolvers related to search e.g.
Query.searchMeasurements.auth.1.req.vtl
.But the updated auth resolvers related to graphql subscriptions cause the push to fail with the error message
Expected behavior
After updating the custom auth resolvers, changes should deploy.
Reproduction steps
Subscription.onCreateCustomer.auth.1.req.vtl
Project Identifier
Project Identifier: 888164d0a62c44d3956d89db2613c7ec
Session Identifier: 0e8bf909-bc9d-4c5e-a038-cac108108654
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: