-
Notifications
You must be signed in to change notification settings - Fork 987
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
store nodes are not available after upgrading golang to 1.20 #19581
Comments
The error is triggered from here -> https://github.com/status-im/status-go/blob/759e5e5c7b7697168305eab6d69383a6914fd657/protocol/messenger_store_node_request_manager.go#L520 seems that there is a timeout of 30 seconds Investigating further |
I added few logs here -> status-im/status-go@ec02f33 I see some interesting logs in
|
Some of these errors seem specific to Android OS I wonder what would be the difference in logs on iOS since QA team earlier reported that this functionality fails on iOS as well. Investigating further. |
I tried to recreate this on iOS and I was able to fetch community properly over there. Potential fix in golang repo is here -> golang/go#61089 |
so Next step should be to add more logs to the |
Some relevant links about DNS resolution issues when CGO is not used in Go projects on Android: |
The problematic logs are actually these :
These logs indicate a dns resolution failure which probably fails at These hints indicate that go The |
@richard-ramos says he could probably quite easily upgrade According to Richard the tricky part might be upgrading |
The dns resolution issue was fixed by overriding the const bootstrapDNS = "8.8.8.8:53"
var dialer net.Dialer
net.DefaultResolver = &net.Resolver{
PreferGo: false,
Dial: func(context context.Context, _, _ string) (net.Conn, error) {
conn, err := dialer.DialContext(context, "udp", bootstrapDNS)
if err != nil {
return nil, err
}
return conn, nil
},
} note: we only do this for Android devices, Since DNS resolution works fine for iOS. |
We have to keep in mind that hard-coding google DNS to be But good work figuring out the fix. |
Problem
After upgrading go to 1.20 on status-go and pointing to that branch on status-mobile we observe the following issue :
Trying to open community via a link fails.
Community link I tried : https://status.app/c/iw6AChwKCE5ldyBjb21tEgVkYXNzZBgBIgcjNDM2MERGAw==#zQ3shibjPWsBFi527PL5hyBWVq9tWjuXdSXwBscTKgEEx3YwM
Screenshots
What we see immediately:
What we see after a few seconds:
Metro logs
The text was updated successfully, but these errors were encountered: