You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** Provide additional details e.g. code snippets **
I am new to amplify. Is it safe to say the experience of using amplify is all about finding ways to work around: "stackUpdateComplete error?" after amplify push?
I experience this error every single day during app development, and I end up having to delete everything and start over multiple times a day. I've learned that you have to be very delicate with schema updates. So I've been very delicate, yet the error still happens every day.
For example, when changing a type in my schema, I've found the best way is to completely comment it out, then run a push (to hopefully delete everything) and then uncomment the type, modify it, and amplify push and hope for the best.
Here's an example where resolvers are not being cleaned up properly and you can probably reproduce and fix it.
type Something {
id: ID!
hello: String!
}
type HasSomething {
id: ID!
something: Something @connection
}
So I comment out "HasSomething" and amplify push to delete it. Success (or not).
Then I uncomment it and amplify push and it fails.
Reason: Only one resolver is allowed per field.
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
An error occured during the push operation: Resource is not in the state stackUpdateComplete
Can you reproduce?
Can you fix?
The text was updated successfully, but these errors were encountered:
mooser
changed the title
Resolvers aren't being cleaned up properly.
Resolvers for a connection aren't being cleaned up properly.
Sep 28, 2019
kaustavghosh06
changed the title
Resolvers for a connection aren't being cleaned up properly.
Error: Only one resolver is allowed per field
Oct 3, 2019
@mooser The "One resolver per field" error/bug is a know AppSync service bug and we're actively working with the service team to get this fixed. There is already an issue opened up out here - #682 which we're using to track this and #682 (comment) mentions about a workaround for this.
** Which Category is your question related to? **
amplify push
** What AWS Services are you utilizing? **
appsync
** Provide additional details e.g. code snippets **
I am new to amplify. Is it safe to say the experience of using amplify is all about finding ways to work around: "stackUpdateComplete error?" after amplify push?
I experience this error every single day during app development, and I end up having to delete everything and start over multiple times a day. I've learned that you have to be very delicate with schema updates. So I've been very delicate, yet the error still happens every day.
For example, when changing a type in my schema, I've found the best way is to completely comment it out, then run a push (to hopefully delete everything) and then uncomment the type, modify it, and amplify push and hope for the best.
Here's an example where resolvers are not being cleaned up properly and you can probably reproduce and fix it.
So I comment out "HasSomething" and amplify push to delete it. Success (or not).
Then I uncomment it and amplify push and it fails.
The text was updated successfully, but these errors were encountered: