iampawan / ChatGPT-Flutter-AIChatBot

A Chatbot chat app built using the Flutter framework and OpenAI's GPT-3 language model.
245 stars 105 forks source link

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: DioError [DioErrorType.receiveTimeout]: Receiving data timeout[5000ms] #6

Closed Parth2112 closed 1 year ago

Parth2112 commented 1 year ago

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)

sixtysticks commented 1 year ago

+1

SANKARAMDAS commented 1 year ago

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. (package:chat_bot_chatgpt/chat_Screen.dart:115:17) E/flutter ( 1195): #7 _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1096:21) E/flutter ( 1195): #8 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:253:24) E/flutter ( 1195): #9 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:627:11) E/flutter ( 1195): #10 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:306:5) E/flutter ( 1195): #11 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:239:7) E/flutter ( 1195): #12 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:615:9) E/flutter ( 1195): #13 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98:12) E/flutter ( 1195): #14 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143:9) E/flutter ( 1195): #15 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:625:13) E/flutter ( 1195): #16 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141:18) E/flutter ( 1195): #17 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127:7) E/flutter ( 1195): #18 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:460:19) E/flutter ( 1195): #19 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:440:22) E/flutter ( 1195): #20 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:336:11) E/flutter ( 1195): #21 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:395:7) E/flutter ( 1195): #22 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:357:5) E/flutter ( 1195): #23 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:314:7) E/flutter ( 1195): #24 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:295:7) E/flutter ( 1195): #25 _invoke1 (dart:ui/hooks.dart:164:13) E/flutter ( 1195): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:361:7) E/flutter ( 1195): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:91:31) E/flutter ( 1195): E/flutter ( 1195): #0 DioMixin.fetch. (package:dio/src/dio_mixin.dart:643:7) E/flutter ( 1195): #1 _RootZone.runBinary (dart:async/zone.dart:1665:54) E/flutter ( 1195): #2 _FutureListener.handleError (dart:async/future_impl.dart:162:22) E/flutter ( 1195): #3 Future._propagateToListeners.handleError (dart:async/future_impl.dart:779:47) E/flutter ( 1195): #4 Future._propagateToListeners (dart:async/future_impl.dart:800:13) E/flutter ( 1195): #5 Future._completeError (dart:async/future_impl.dart:575:5) E/flutter ( 1195): #6 _SyncCompleter._completeError (dart:async/future_impl.dart:51:12) E/flutter ( 1195): #7 _Completer.completeError (dart:async/future_impl.dart:23:5) E/flutter ( 1195): #8 Future.any.onError (dart:async/future.dart:617:45) E/flutter ( 1195): #9 _RootZone.runBinary (dart:async/zone.dart:1665:54) E/flutter ( 1195): #10 _FutureListener.handleError (dart:async/future_impl.dart:162:22) E/flutter ( 1195): #11 Future._propagateToListeners.handleError (dart:async/future_impl.dart:779:47) E/flutter ( 1195): #12 Future._propagateToListeners (dart:async/future_impl.dart:800:13) E/flutter ( 1195): #13 Future._completeError (dart:async/future_impl.dart:575:5) E/flutter ( 1195): #14 Future._asyncCompleteError. (dart:async/future_impl.dart:666:7) E/flutter ( 1195): #15 _microtaskLoop (dart:async/schedule_microtask.dart:40:21) E/flutter ( 1195): #16 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)

krishnawithcoder commented 1 year ago

external static Never _throw(Object error, StackTrace stackTrace)

FrancisIje commented 1 year ago

Has anyone fixed this?

iampawan commented 1 year ago

Fixed in latest commit