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
Actions stopped working #9170
Comments
Thanks for reporting. Any chance you can share the metadata for one of your actions (which is throwing this) from v2.14? You will need to export it out from the console (via the Settings button on top-right) or |
Sure, here you go |
@Stano9 your metadata includes an empty response transform which is likely to be the problem. |
Also, no i don't have source-controlled metadata |
I see. Strange how things got in that state. For the time being, you can most likely fix your issue by removing the following string wherever it appears in your metadata: "response_transform": { "body": { "action": "transform", "template": "" }, "template_engine": "Kriti", "version": 2 }, Then you can apply that file again and should be good to go. |
@BenoitRanque, |
@Stano9 I'm unable to reproduce with the following steps:
Was there anything else you did during/before/after the upgrade? |
I haven't done anything during/before/after the upgrade @BenoitRanque I created a fresh new action with without doing a Request Transform or Response Transform, and it did not append the empty transform Object in metadata. However when i added a Request Transform it automatically appended the empty Response Transform, |
@Stano9 thanks, I can reproduce similar problems now.
|
Same error here. I created actions in v2.7.0 and, after upgrade to v2.14.0, nothing works. |
Still unable to repro this with only an upgrade. @mrpotato3 @Stano9 if you're able to provide more details on what upgrading meant for you we would be grateful. |
@BenoitRanque |
We have fixed an issue when the console is used in modifying the action but we are still trying to figure out this error when the console is not involved i.e. server upgrade -> actions failure. |
@Stano9 @mrpotato3 Just want to confirm once again: You upgraded the server by changing the image and started receiving this error without any console or CLI involvement right? Also, are you using the CLI-migrations image or the regular image? |
Hey @tirumaraiselvan sorry for late reply, we are using Elastic Container Service on AWS(with Fargate) , we've just changed the image there and that's all, no migrations were done. |
Hi @tirumaraiselvan I upgraded docker image version from v2.7.0 to v2.14.0. I'm using Kubernetes. Thanks! |
@mrpotato3 Can you share your metadata from v2.7.0 pls? |
@Stano9 the bug we've identified and fixed addresses cases where an action was modified and saved from the console, which would result in an empty response transform as you witnessed. We're still unable to reproduce an issue where metadata would be updated after an upgrade to corrupt all actions. Can you explain more on your upgrade process? Where any of the actions modified after the update? |
Version Information
2.14.0
All of my Hasura actions stopped working after i updated to latest version v2.14.0, i constantly keep getting the same error
The Error:
{ "errors": [ { "extensions": { "code": "unexpected", "path": "$" }, "message": "Response Transformation Failed" } ] }
The Action types
type Query { auth( username: String! password: String! ): AuthResponse }
type AuthResponse { session_token: String }
My Rest Endpoint Code
export const auth = async (request: Request, response: Response, next) => { response.status(200).json({ session_token: 'sometoken' }) }
The text was updated successfully, but these errors were encountered: