Closed Parth2112 closed 1 year ago
+1
Same here.
I/flutter ( 1195): have Error [429] => Data: {error: {message: The server had an error while processing your request. Sorry about that!, type: server_error, param: null, code: null}}
E/flutter ( 1195): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: DioError [DioErrorType.response]: Http status error [429]
E/flutter ( 1195): Source stack:
E/flutter ( 1195): #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:488:35)
E/flutter ( 1195): #1 DioMixin.request (package:dio/src/dio_mixin.dart:483:12)
E/flutter ( 1195): #2 DioMixin.post (package:dio/src/dio_mixin.dart:97:12)
E/flutter ( 1195): #3 ChatGPT._completeText (package:chat_gpt_sdk/src/chat_gpt_api.dart:94:11)
E/flutter ( 1195): #4 ChatGPT.onCompleteStream (package:chat_gpt_sdk/src/chat_gpt_api.dart:86:5)
E/flutter ( 1195): #5 _ChatScreenState._sendMessage (package:chat_bot_chatgpt/chat_Screen.dart:75:12)
E/flutter ( 1195): #6 _ChatScreenState._buildTextComposer.
external static Never _throw(Object error, StackTrace stackTrace)
Has anyone fixed this?
Fixed in latest commit
Getting this error when tryin to run
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: DioError [DioErrorType.receiveTimeout]: Receiving data timeout[5000ms] E/flutter (15032): Source stack: E/flutter (15032): #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:488:35) E/flutter (15032): #1 DioMixin.request (package:dio/src/dio_mixin.dart:483:12) E/flutter (15032): #2 DioMixin.post (package:dio/src/dio_mixin.dart:97:12) E/flutter (15032): #3 ChatGPT._completeText (package:chat_gpt_sdk/src/chat_gpt_api.dart:94:11) E/flutter (15032): #4 ChatGPT.onCompleteStream (package:chat_gpt_sdk/src/chat_gpt_api.dart:86:5) E/flutter (15032): #5 _ChatScreenState._sendmessage (package:change4/pages/chat_screen.dart:47:10) E/flutter (15032): #6 _ChatScreenState._buildTextComposer. (package:change4/pages/chat_screen.dart:97:19)
E/flutter (15032): #7 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:253:24)
E/flutter (15032): #8 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:627:11)
E/flutter (15032): #9 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:306:5)
E/flutter (15032): #10 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:276:7)
E/flutter (15032): #11 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:163:27)
E/flutter (15032): #12 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:464:20)
E/flutter (15032): #13 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:440:22)
E/flutter (15032): #14 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:337:11)
E/flutter (15032): #15 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:395:7)
E/flutter (15032): #16 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:357:5)
E/flutter (15032): #17 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:314:7)
E/flutter (15032): #18 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:295:7)
E/flutter (15032): #19 _invoke1 (dart:ui/hooks.dart:167:13)
E/flutter (15032): #20 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:341:7)
E/flutter (15032): #21 _dispatchPointerDataPacket (dart:ui/hooks.dart:94:31)