Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialization Error When Connecting from Behind Firewall Not Informative #150

Closed
GeToNIX531 opened this issue Dec 17, 2023 · 4 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@GeToNIX531
Copy link

System.Text.Json.JsonException: "'<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0."
JsonReaderException: '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.

Example:
var response = await client.CreateChatCompletionAsync(request);

@GeToNIX531
Copy link
Author

Solution:
Enable VPN

Please add exceptions about connection error
It is associated with an incorrect/incomplete system for parsing responses from the API

@GeToNIX531
Copy link
Author

The error occurs in several regions. I can say for sure that in the CIS countries

@johniwasz johniwasz changed the title Bug Bug - Serialization Error When Connecting from Firewall Not Informative Dec 17, 2023
@johniwasz johniwasz changed the title Bug - Serialization Error When Connecting from Firewall Not Informative Bug - Serialization Error When Connecting from Behind Firewall Not Informative Dec 17, 2023
@johniwasz johniwasz self-assigned this Dec 17, 2023
@johniwasz
Copy link
Owner

Version 1.7 includes error handling for deserialization issues. Please update, retest, and validate.

@johniwasz johniwasz added the enhancement New feature or request label Dec 17, 2023
@johniwasz johniwasz changed the title Bug - Serialization Error When Connecting from Behind Firewall Not Informative Serialization Error When Connecting from Behind Firewall Not Informative Dec 17, 2023
@johniwasz
Copy link
Owner

Closing issue due to inactivity and completed work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants