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

Backendと通信しようとすると通信エラーのToastが出る #112

Open
atomic928 opened this issue Dec 26, 2022 · 4 comments
Open
Assignees
Labels
Android bug Something isn't working

Comments

@atomic928
Copy link
Contributor

確認したバグ

  • login, signupをしようとすると通信エラーのToastが出る

望ましい挙動

  • 普通に通信できる

改善案(あれば)

  • serverが生きているか確認
  • 生きているならandroid側でのリクエストが正しいか確認
@atomic928 atomic928 added bug Something isn't working Android labels Dec 26, 2022
@atomic928 atomic928 self-assigned this Dec 26, 2022
@atomic928
Copy link
Contributor Author

BASE_URLでHello, World返ってくるので、サーバー自体は生きてそう

@atomic928
Copy link
Contributor Author

atomic928 commented Dec 26, 2022

Worning出てる
java.io.IOException: unexpected end of stream on http://34.173.190.218:3000/
Caused by: java.io.EOFException: \n not found: limit=0 content=…

@atomic928
Copy link
Contributor Author

スクリーンショット 2022-12-26 13 28 55

@atomic928
Copy link
Contributor Author

atomic928 commented Dec 26, 2022

retryOnConnectionFailure(true)にしても、interceptor追加しても意味なかった

https://stackoverflow.com/questions/72008226/android-okhttp-http-failed-java-io-ioexception-unexpected-end-of-stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant