Comments (14)
@rafaelekol thank you! We'll look into this ASAP
from walletconnectkotlinv2.
@rafaelekol we're still investigating a solution to enable failover for both our Http client and websocket client
from walletconnectkotlinv2.
Function coreAndroidNetworkModule()
in CoreNetworkModule.kt file contains multiple calls chain.proceed()
which can cause such error.
I couldn't reproduce this error with your sample app.
from walletconnectkotlinv2.
It may be the same issue as described here
from walletconnectkotlinv2.
The newest version is 1.21.0. Can you upgrade and see if this still persists?
from walletconnectkotlinv2.
@jakubuid I tried to update until version 1.21.0.
But it didn't help. I am getting same error.
from walletconnectkotlinv2.
Can you provide reproduction steps?
from walletconnectkotlinv2.
@jakubuid
Inside this class com.walletconnect.android.internal.common.di.CoreNetworkModule
I added 2 lines of code to reproduce
crash that is happening in our project.
@Suppress("LocalVariableName")
@JvmSynthetic
fun coreAndroidNetworkModule(serverUrl: String, connectionType: ConnectionType, sdkVersion: String, timeout: NetworkClientTimeout? = null) = module {
val DEFAULT_BACKOFF_SECONDS = 5L
...
single(named(AndroidCommonDITags.FAIL_OVER_INTERCEPTOR)) {
Interceptor { chain ->
val request = chain.request()
try {
val host = request.url.host
//I added these 2 lines
chain.proceed(request)
throw SocketException("test")
when {
shouldFallbackRelay(host) -> chain.proceed(request.newBuilder().url(get<String>(named(AndroidCommonDITags.RELAY_URL))).build())
shouldFallbackPush(host) -> chain.proceed(request.newBuilder().url(getFallbackPushUrl(request.url.toString())).build())
shouldFallbackVerify(host) -> chain.proceed(request.newBuilder().url(getFallbackVerifyUrl(request.url.toString())).build())
else -> chain.proceed(request)
}
} catch (e: Exception) {
if (isFailOverException(e)) {
when (request.url.host) {
DEFAULT_RELAY_URL.host -> fallbackRelay(request, chain)
DEFAULT_PUSH_URL.host -> fallbackPush(request, chain)
DEFAULT_VERIFY_URL.host -> fallbackVerify(request, chain)
else -> chain.proceed(request)
}
} else {
chain.proceed(request)
}
}
}
}
...
from walletconnectkotlinv2.
Hi, any updates on this issue?
from walletconnectkotlinv2.
@rafaelekol are you able to tell us if you saw this issue in a Debug build or on a Release build?
from walletconnectkotlinv2.
@TalhaAli00 This crash is steadily happens when I try to increase your Release library higher than 1.15.0.
We suspect that issue lies in combination of other network libraries that we use in our App with your SDK.
from walletconnectkotlinv2.
@TalhaAli00 Any progress on this bug?
This issue is holding us from updating your SDK in our wallet.
from walletconnectkotlinv2.
Hello @rafaelekol
We've been able to focus time to resolving this issue. There's a PR #1365 where I've able to make sure that the interceptor isn't leaving a response open when switching over during the failover logic. We'll be releasing a new version this week with this fix
from walletconnectkotlinv2.
@TalhaAli00 thats great news 👍🏼
from walletconnectkotlinv2.
Related Issues (20)
- java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/LocalSoftwareKeyboardController
- ClassNotFoundException ExpiredProposal HOT 2
- BouncyCastle bundled with WC contains security vulnerability HOT 1
- SignClient.connect: Metamask does not handle multiple chains in a namespace proposal HOT 2
- Fatal Exception: net.sqlcipher.database.SQLiteException: error code 8: attempt to write a readonly database
- When send accountchanged to sessionevnet in Kotlin version, only string type can be send, but in case of js, accountchanged checks array. HOT 8
- Exception : Publish request timed out: Timed out waiting for 10000 ms HOT 3
- Fatal Exception: net.sqlcipher.database.SQLiteConstraintException: error code 19: UNIQUE constraint failed: Pairing.topic HOT 1
- Receiving Previous Requests
- java.lang.IllegalStateException: Creating Pairing failed HOT 4
- Access: walletconnect: android com: 1.31.0 Compile duplicate class error May I ask how to solve it HOT 3
- Crash java.lang.UnsatisfiedLinkError "libsqlcipher.so" HOT 1
- personal_sign Signature TokenPocket:walletconnectv1 is not supported?
- Approve session callback `onError ` callback called after `onSuccess` HOT 3
- wallet connect cannot redirect the source application after connecting to the okx wallet HOT 3
- android bundler apk failed HOT 3
- After updating to 1.31.3 getting IllegalStateException: Unreadable ResponseBody! HOT 6
- Library crash with "Publish request timed out: Timed out waiting for 10000 ms"
- When I clicked to select the wallet to connect, a crash occurred. HOT 7
- https://github.com/WalletConnect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from walletconnectkotlinv2.