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

fixing io client #25

Merged
merged 1 commit into from
Sep 28, 2024
Merged

fixing io client #25

merged 1 commit into from
Sep 28, 2024

Conversation

abdelaziz-mahdy
Copy link
Contributor

using this code

class MyHttpOverrides extends HttpOverrides {
  // Static HttpClient instance that is created only once
  static final HttpClient _client = IoCompatibleClient.createSync();

  MyHttpOverrides();

  @override
  HttpClient createHttpClient(SecurityContext? context) {
    return _client;
  }
}

void main() async {
  await Rhttp.init();
  HttpOverrides.global = MyHttpOverrides();
  runApp(const MyApp());
}

using this caused alot of errors due to not implemented methods, but after fixing those i got this error

Exception has occurred.
CloseStreamException

that results to

Request failed with error: DioException [unknown]: null
         │ Error: FormatException: Unexpected character (at offset 0).

@Tienisto Tienisto merged commit cec27fa into Tienisto:main Sep 28, 2024
2 checks passed
@abdelaziz-mahdy
Copy link
Contributor Author

thank you for merging that, but as i mentioned its not working and i cant figure out the error since its from rust side, can you check it?

@Tienisto
Copy link
Owner

I have created #27 to follow this issue because I don't have time to fix it right now

@abdelaziz-mahdy
Copy link
Contributor Author

I have created #27 to follow this issue because I don't have time to fix it right now

Thank you very much. Will wait for that then

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

Successfully merging this pull request may close these issues.

2 participants