hasura / hasura/graphql-engine

Hasura Action error message for Attribute Errors has a typo in the message text

Open
#10,069 1 comment 0 reactions 0 assignees View on GitHub
k/bug s/triaged t/gql-services v2
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

An example I see with an action I'm developing right now:
```
{
"errors": [
{
"message": "Response Transformation Failed",
"extensions": {
"path": "$",
"code": "unexpected",
"internal": [
{
"error_code": "Attribute Error",
"message": "'Object' has no attritubte 'unread'.",
"source_position": {
"end_column": 29,
"end_line": 1,
"start_column": 17,
"start_line": 1
}
}
]
}
}
]
}
```

I tried searching the github code but the only hit I got was in a test that explicitly looks for that string.

https://github.com/hasura/graphql-engine/blob/19049651724aeaa77ce7ea10480a80fe86afcd6c/server/tests-py/queries/v1/metadata/test_webhook_transform_bad_eval.yaml#L17

Contributor guide

Open the contributing guide

Research direction

Start with server/tests-py/queries/v1/metadata/test_webhook_transform_bad_eval.yaml at the linked assertion, then trace the implementation that produces the Attribute Error message. Correct the spelling in the generated message and update the explicitly matching test; done means the test passes with the corrected wording.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.