Skip to content

Conversation

@Nanaier
Copy link
Collaborator

@Nanaier Nanaier commented Sep 30, 2023

Screenshot 2023-09-30 at 12 36 05

message: response.statusText,
};
}
private handleError(response: Response): Promise<never> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also need to catch and rethrow error in service, because we need to override status code, for example if open ai respond with 401, we don't want to respond with 401 because user will be signed out

@Nanaier Nanaier self-assigned this Sep 30, 2023
@Nanaier Nanaier added this to the calmpal-release-5 milestone Sep 30, 2023
@Nanaier Nanaier requested a review from liza-veis September 30, 2023 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants