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

App Sync SDK Crashing with java.lang.IllegalStateException #363

Open
jayshildave1983 opened this issue Aug 18, 2021 · 0 comments
Open

App Sync SDK Crashing with java.lang.IllegalStateException #363

jayshildave1983 opened this issue Aug 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jayshildave1983
Copy link

jayshildave1983 commented Aug 18, 2021

Describe the bug
There is a crash in the interceptor for App Sync SDK in the class AppSyncSigV4SignerInterceptor.java line number 173
The chain request needs to be closed before it can be proceeded.

To Reproduce
Steps to reproduce the behavior:
The crash is random and happens generally when there is a retry request in place

Expected behavior
The SDK should not crash while trying to do a retry request.

Screenshots
Not applicable

Environment(please complete the following information):

  • AppSync SDK Version: 3.1.1

Device Information (please complete the following information):

  • Device: All
  • Android Version: All
  • Specific to simulators: No

Additional context
This came in because OKHttp used by AppSyncSDK for Networking request had a update. Details can be found here
square/okhttp#4986

Crash log with details.
Fatal Exception: java.lang.IllegalStateException: cannot make a new request because the previous response is still open: please call response.close()
at okhttp3.internal.connection.Transmitter.newExchange$okhttp(Transmitter.java:157)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:35)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:112)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:87)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:82)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:112)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:87)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:84)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:112)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:71)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:112)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:87)
at com.amazonaws.mobileconnectors.appsync.sigv4.AppSyncSigV4SignerInterceptor.intercept(AppSyncSigV4SignerInterceptor.java:173)

@gpanshu gpanshu added the pending-triage Issue is pending triage label May 1, 2023
@gpanshu gpanshu added bug Something isn't working and removed pending-triage Issue is pending triage labels Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants