mirror of
https://github.com/langchain-ai/auto-evaluator.git
synced 2026-07-18 12:46:06 -04:00
[GH-ISSUE #79] Catch server errors and return alert to the user #45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rlancemartin on GitHub (Apr 30, 2023).
Original GitHub issue: https://github.com/langchain-ai/auto-evaluator/issues/79
Originally assigned to: @benisgold on GitHub.
Test w/ GPT-4 paper (example of invalid token):
@rlancemartin commented on GitHub (Apr 30, 2023):
Confirm now we will see a server error:
@rlancemartin commented on GitHub (May 1, 2023):
But, the railway deployed API actually will just return
None.This throws a server error:
But the API returns
None:So, in prod we could catch
Nonefrom the server and just alert an error.Catch server errors and return alert to the userto [GH-ISSUE #79] Catch server errors and return alert to the user