Project

General

Profile

Task #3127

Task #3126: Handle OpenAI API error codes

BE: Return the 500 error in the response of /answer api, if receive any error from openai.

Added by Ayush Khandelwal over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Immediate
Target version:
Start date:
07/13/2023
Due date:
07/24/2023
% Done:

100%

Estimated time:
2.00 h
Spent time:

Description

Server side
-----------
If error is 401 or 429, please log a critical level message; else log a info level message.

Log Message = "OpenAI error: <return error code and message from API call>"

At this time, send the error code as 500 to the frondend with the message "Unfortunately, ChatGPT Plus API Servers are very busy. Please retry later".

#1

Updated by Venmuhilan B over 1 year ago

  • Assignee changed from Venmuhilan B to Abhijata Sen
#2

Updated by Abhijata Sen over 1 year ago

  • Status changed from New to In Progress
#3

Updated by Abhijata Sen over 1 year ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
#4

Updated by Abhijata Sen over 1 year ago

  • Status changed from Resolved to Review
  • Assignee changed from Abhijata Sen to Venmuhilan B
#5

Updated by Venmuhilan B over 1 year ago

  • Status changed from Review to Reopened
  • Assignee changed from Venmuhilan B to Abhijata Sen
#6

Updated by Venmuhilan B over 1 year ago

  • % Done changed from 100 to 30
#7

Updated by Venmuhilan B over 1 year ago

  • Status changed from Reopened to In Progress
#8

Updated by Venmuhilan B over 1 year ago

  • Status changed from In Progress to Resolved
  • % Done changed from 30 to 100
#9

Updated by Venmuhilan B over 1 year ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Abhijata Sen to Venmuhilan B
#10

Updated by Venmuhilan B over 1 year ago

  • Assignee changed from Venmuhilan B to Ayush Khandelwal
#11

Updated by Venmuhilan B over 1 year ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Ayush Khandelwal to Venmuhilan B
#12

Updated by Venmuhilan B over 1 year ago

  • Status changed from Resolved to Review
#13

Updated by Venmuhilan B over 1 year ago

  • Assignee changed from Venmuhilan B to Ayush Khandelwal
#14

Updated by Ayush Khandelwal over 1 year ago

  • Due date changed from 07/13/2023 to 07/24/2023
  • Status changed from Review to Reopened
  • Assignee changed from Ayush Khandelwal to Venmuhilan B
  • % Done changed from 100 to 80

There is a change in the requirement:
Let's change the error message from "Unfortunately, ChatGPT Plus API Servers are very busy. Please retry later" to "Unfortunately, ChatGPT Plus Servers are very busy. Please retry later"

#15

Updated by Venmuhilan B over 1 year ago

  • Assignee changed from Venmuhilan B to Abhijata Sen
#16

Updated by Abhijata Sen over 1 year ago

  • Assignee changed from Abhijata Sen to Venmuhilan B
#17

Updated by Abhijata Sen over 1 year ago

  • Status changed from Reopened to In Progress
#18

Updated by Abhijata Sen over 1 year ago

  • Status changed from In Progress to Resolved
#19

Updated by Abhijata Sen over 1 year ago

  • Status changed from Resolved to Review
#20

Updated by Venmuhilan B over 1 year ago

  • Assignee changed from Venmuhilan B to Ayush Khandelwal
#21

Updated by Venmuhilan B over 1 year ago

  • % Done changed from 80 to 100
#22

Updated by Venmuhilan B over 1 year ago

  • Status changed from Review to Feedback
  • Assignee changed from Ayush Khandelwal to Abhijata Sen
#23

Updated by Abhijata Sen over 1 year ago

  • Assignee changed from Abhijata Sen to Venmuhilan B
#25

Updated by Ram Kordale over 1 year ago

  • Priority changed from Urgent to Immediate
#26

Updated by Ayush Khandelwal over 1 year ago

  • Status changed from Feedback to Closed

Working as expected

Also available in: Atom PDF