question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hasura action gives error on changing parameters

See original GitHub issue

Version Information

v2.14.0-cloud.1 Server Version: CLI Version (for CLI related issue):

Environment

Cloud

What is the current behaviour?

Getting this error on an action, despite not setting any custom response transformation on my own. In the Actions settings tab, there isn’t any added request transformation. This action used to work perfectly before, but started giving errors recently. Now, any new action faces the same errors. From the logs I know that the request is properly handled at the backend (webhook that the action calls). This “Response Transformation” error started appearing out of nowhere as far as I know.

What is the expected behaviour?

For this to not happen, and the action to be processed properly.

How to reproduce the issue?

  1. In the account I’m using, first, make an action with say any parameters.
  2. Set everything properly. Test the action. It works perfectly. Now, go to the action settings and change anything, for example, add a new parameter to the action.
  3. Test the same action. would crash with this error.

Screenshots or Screencast

image Here is also a screencast of me reproducing the same issue on a new action. The code for the testingAction webhook is simple:-

module.exports.testAction = async (req, res) => {
  console.log("hit")
  return res.json({
    status: "Banana"
  })
};

I do get a “hit” printed in the logs, even after the response doesn’t show up properly on hasura.

https://user-images.githubusercontent.com/111136776/199655968-4b4d8ba6-d5b5-429f-ac00-0796eb8fd109.mp4

Please provide any traces or logs that could help here.

Any possible solutions/workarounds you’re aware of?

None

Keywords

“Response Transformation Failed”

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
BenoitRanquecommented, Nov 4, 2022

@arush-spacetime you can fix the old action with the following steps:

  • export metadata from the console as a json file
  • find the json key response_transform in your action metadata and remove it for all affected actions
  • import the metadata from the console back into your project

This assumes you never had a response transform, which should be the case for most users.

0reactions
tirumaraiselvancommented, Nov 4, 2022

@cheets I think you may have to clean your old actions as mentioned in this comment. Also, pls hard refresh your browser to load the new assets from the CDN.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling GraphQL Errors with Hasura & React
A guide to common GraphQL API & Hasura specific errors and how to handle them with React pages.
Read more >
Optional arguments in hasura not working after migrating to ...
The above query gives the following error when $isVerified is not passed. { "errors": [ { "extensions": { "path": "$.selectionSet.auth_users.
Read more >
Convert Existing REST APIs to GraphQL using Hasura Actions
In this stream, we will take existing REST APIs and convert them to GraphQL using Hasura Actions. We will go over how to...
Read more >
Resource does not exist error on hasura while github ci cd
This was a silly mistake --endpoint must not contain URL path. So its value will be https://customer-support-dev.hasura.app .
Read more >
DipDup v2.0 brings extended Hasura support, REST ...
This article will guide you through the recent DipDup changes with ... If you're getting SQL engine errors, try to split large scripts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found