Skip to content
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

[Task](heureka): Implement Robust Apollo Client Error Handling and Typing #847

Open
5 tasks
ArtieReus opened this issue Mar 26, 2025 · 0 comments
Open
5 tasks
Labels
heureka Heureka related issues

Comments

@ArtieReus
Copy link
Collaborator

Task Description
We are currently using a temporary any type for handling Apollo Client network errors in the getNormalizedError function. This is due to the incomplete error handling and typing implementation for the various error types we can receive from Apollo Client.

To ensure better type safety and maintainable code, we need to properly handle and type all possible errors from Apollo Client. This task is focused on implementing a robust error handling strategy with appropriate types for all Apollo Client errors.

Sub-tasks

  • Investigate the types of errors that Apollo Client can throw (e.g., ServerError, NetworkError, etc.).
  • Define and implement proper types for network and GraphQL errors from Apollo Client.
  • Replace the any type in getNormalizedError with the appropriate types.
  • Test the error handling with various Apollo Client error scenarios (e.g., network errors, GraphQL validation errors, etc.).
  • Update documentation and comments regarding the new error handling approach.

Related Issues
Link to related issues or tasks, if any.

Additional Context
Add any other context or information here.

@ArtieReus ArtieReus added the heureka Heureka related issues label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
heureka Heureka related issues
Projects
None yet
Development

No branches or pull requests

1 participant