flutter_gemini
flutter_gemini copied to clipboard
Ciritical error: DioException
*** Request *** uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-1.0-pro:streamGenerateContent?key= method: POST responseType: ResponseType.stream followRedirects: true persistentConnection: true connectTimeout: null sendTimeout: null receiveTimeout: null receiveDataWhenStatusError: true extra: {} headers: content-type: application/json data: {"contents":[{"parts":[{"text":"this is a sample message"}],"role":"user"}]}
*** DioException ***: uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-1.0-pro:streamGenerateContent?key= DioException [connection error]: The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an error on the network layer. This indicates an error which most likely cannot be solved by the library.
DartError: GeminiException => The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an error on the network layer. This indicates an error which most likely cannot be solved by the library.
Status Code: -1
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 296:3 throw
packages/flutter_gemini/src/utils/gemini_exception_handler_mixin.dart 28:9 handler
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 60:31