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

UnknownHostException Unable to resolve host "errors.stripe.com" #3081

Closed
xiaoxiaohua333 opened this issue Nov 24, 2020 · 2 comments · Fixed by #3083
Closed

UnknownHostException Unable to resolve host "errors.stripe.com" #3081

xiaoxiaohua333 opened this issue Nov 24, 2020 · 2 comments · Fixed by #3083
Assignees

Comments

@xiaoxiaohua333
Copy link

Summary

we get the crash from firebase

Fatal Exception: java.net.UnknownHostException: Unable to resolve host "errors.stripe.com": No address associated with hostname
       at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:141)
       at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
       at java.net.InetAddress.getAllByName(InetAddress.java:787)
       at com.android.okhttp.Dns$1.lookup(Dns.java:39)
       at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:200)
       at com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:148)
       at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:90)
       at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:190)
       at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:142)
       at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:104)
       at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:410)
       at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:343)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:489)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
       at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
       at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
       at com.google.firebase.perf.network.InstrURLConnectionBase.getOutputStream(InstrURLConnectionBase.java:155)
       at com.google.firebase.perf.network.InstrHttpsURLConnection.getOutputStream(InstrHttpsURLConnection.java:89)
       at a.a.a.a.c.a$b.invokeSuspend(a.java:4)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:106)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:571)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.java:738)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.java:678)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java:665)


Caused by android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
       at libcore.io.Linux.android_getaddrinfo(Linux.java)
       at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:58)
       at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:122)
       at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
       at java.net.InetAddress.getAllByName(InetAddress.java:787)
       at com.android.okhttp.Dns$1.lookup(Dns.java:39)
       at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:200)
       at com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:148)
       at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:90)
       at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:190)
       at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:142)
       at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:104)
       at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:410)
       at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:343)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:489)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
       at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
       at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
       at com.google.firebase.perf.network.InstrURLConnectionBase.getOutputStream(InstrURLConnectionBase.java:155)
       at com.google.firebase.perf.network.InstrHttpsURLConnection.getOutputStream(InstrHttpsURLConnection.java:89)
       at a.a.a.a.c.a$b.invokeSuspend(a.java:4)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:106)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:571)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.java:738)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.java:678)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java:665)

Android version

image

Installation method

implementation 'com.stripe:stripe-android:16.1.0'

SDK version

16.1.0

Other information

implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'

@mshafrir-stripe
Copy link
Collaborator

@xiaoxiaohua333 thanks for filing. I am able to reproduce the issue and will be issuing a new release with the fix.

@mshafrir-stripe mshafrir-stripe self-assigned this Nov 24, 2020
mshafrir-stripe added a commit that referenced this issue Nov 24, 2020
mshafrir-stripe added a commit that referenced this issue Nov 24, 2020
Add `sdkTransactionId` and update tests

Fixes #3081
mshafrir-stripe added a commit that referenced this issue Nov 24, 2020
Add `sdkTransactionId` and update tests

Fixes #3081
@mshafrir-stripe
Copy link
Collaborator

This should be fixed in version 16.1.1, which was just released.

https://github.com/stripe/stripe-android/releases/tag/v16.1.1

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 a pull request may close this issue.

2 participants