facebook / facebook/relay

Improve RelayResponseNormalizer errors

Open
#4,986 1 comment 1 reaction 0 assignees View on GitHub
shared with relay team
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

If there's some data missing in the response payload that shouldn't be missing, the RelayReponseNormalizer currently reports the following error:

![Image](https://github.com/user-attachments/assets/934d7d5e-26e3-4bb9-85ca-7cc0669671ce)

Sadly this error doesn't really provide useful information. There could be hundreds of id fields in the response depending on the size of the query.

In theory, Relay should be able to output the path where this error occurred as this information could be derived from the selection path in the artifacts.

Do you think it would be feasible to improve this error?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.