AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Show error toast for 5xx error
hunteraraujo2187f66149ff
diff --git a/frontend/lib/views/chat/chat_view.dart b/frontend/lib/views/chat/chat_view.dartindex 40117d9b02..5d34bf52da 100644--- a/frontend/lib/views/chat/chat_view.dart+++ b/frontend/lib/views/chat/chat_view.dart@@ -144,6 +144,20 @@ class _ChatViewState extends State<ChatView> {"linear-gradient(to right, #dc1c13, #dc1c13)",textColor: Colors.white,fontSize: 16.0);+ } else if (response is http.Response &&+ response.statusCode >= 500 &&+ response.statusCode < 600) {+ Fluttertoast.showToast(+ msg: "500 error: Something went wrong",+ toastLength: Toast.LENGTH_LONG,+ gravity: ToastGravity.TOP,+ timeInSecForIosWeb: 5,+ backgroundColor: Colors.red,+ webPosition: "center",+ webBgColor:+ "linear-gradient(to right, #dc1c13, #dc1c13)",+ textColor: Colors.white,+ fontSize: 16.0);}}},