hasura / hasura/graphql-engine
Actions stopped working
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### 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' })
}`
Contributor guide
Research direction
Start by reproducing the failure in Hasura Actions using the reported v2.14.0 version, the auth action schema, and the shown REST endpoint response. Trace the action response transformation path and compare its behavior with the reported error; done means the action returns the declared AuthResponse without a Response Transformation Failed error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100