Open churik opened 1 month ago
related issue: https://github.com/status-im/status-desktop/issues/15326
optimism-goerli.infura.io: no such host
ERROR[09-18|09:20:12.266|github.com/status-im/status-go/protocol/messenger_curated_communities.go:49] failed to get curated communities from contract error="optimism-goerli.infura.io.error: Post \"https://optimism-goerli.infura.io/v3/\": dial tcp: lookup optimism-goerli.infura.io: no such host"
ERROR[09-18|09:21:12.268|github.com/status-im/status-go/protocol/messenger_curated_communities.go:49] failed to get curated communities from contract error="optimism-goerli.infura.io.error: Post \"https://optimism-goerli.infura.io/v3/\": dial tcp: lookup optimism-goerli.infura.io: no such host"
ERROR[09-18|09:22:12.271|github.com/status-im/status-go/protocol/messenger_curated_communities.go:49] failed to get curated communities from contract error="optimism-goerli.infura.io.error: Post \"https://optimism-goerli.infura.io/v3/\": dial tcp: lookup optimism-goerli.infura.io: no such host"
cc @siddarthkay
We are hard coding optimism-goerli chainId, here when testNetworksEnabled https://github.com/status-im/status-go/blob/ff7de6884537be05c2b7d3fac3e70fe439515f2a/protocol/messenger_curated_communities.go#L94
For testing I tried other chainIds from https://github.com/status-im/status-go/blob/ff7de6884537be05c2b7d3fac3e70fe439515f2a/api/default_networks.go#L18
But, got error
not available for chainID
ERROR[09-18|10:34:39.350|github.com/status-im/status-go/protocol/messenger_curated_communities.go:49] failed to get curated communities from contract error="not available for chainID"
On the optimism mainnet (chainID 10), giving this error
Authorization Required
ERROR[09-18|10:59:37.601|github.com/status-im/status-go/protocol/messenger_curated_communities.go:49] failed to get curated communities from contract error="status-proxy-0.error: 401 Unauthorized: <html>\r\n<head><title>401 Authorization Required</title></head>\r\n<body>\r\n<center><h1>401 Authorization Required</h1></center>\r\n<hr><center>nginx/1.26.1</center>\r\n</body>\r\n</html>\r\n, status-proxy-fallback-1.error: 401 Unauthorized: <html>\r\n<head><title>401 Authorization Required</title></head>\r\n<body>\r\n<center><h1>401 Authorization Required</h1></center>\r\n<hr><center>nginx/1.26.1</center>\r\n</body>\r\n</html>\r\n, optimism-archival.rpc.grove.city.error: endpoint 3ef2018191814b7e1009b8d9 has passed its daily relay limit, optimism-mainnet.infura.io.error: 401 Unauthorized: project id required in the url\n"
For ref, Implementation: https://github.com/status-im/status-go/pull/2685
On the optimism mainnet (chainID 10), giving this error
Authorization Required
ERROR[09-18|10:59:37.601|github.com/status-im/status-go/protocol/messenger_curated_communities.go:49] failed to get curated communities from contract error="status-proxy-0.error: 401 Unauthorized: <html>\r\n<head><title>401 Authorization Required</title></head>\r\n<body>\r\n<center><h1>401 Authorization Required</h1></center>\r\n<hr><center>nginx/1.26.1</center>\r\n</body>\r\n</html>\r\n, status-proxy-fallback-1.error: 401 Unauthorized: <html>\r\n<head><title>401 Authorization Required</title></head>\r\n<body>\r\n<center><h1>401 Authorization Required</h1></center>\r\n<hr><center>nginx/1.26.1</center>\r\n</body>\r\n</html>\r\n, optimism-archival.rpc.grove.city.error: endpoint 3ef2018191814b7e1009b8d9 has passed its daily relay limit, optimism-mainnet.infura.io.error: 401 Unauthorized: project id required in the url\n"
@richard-ramos Please can you take a look at the issue.
This sounds like something for @status-im/status-go-guild I'm not familiar with the optimism integration nor the keys used for that endpoint
@Parveshdhull
regarding optimism-goerli.infura.io: no such host
, Goerli is dead and shouldn't be used anywhere anymore. Any such use should jump to the equivalent sepolia chain.
regarding the Authorization Required
message, it seems whatever build is used isn't getting its API keys properly injected. If this is a local build, refer to https://www.notion.so/Getting-and-Configuring-API-Keys-67347f753e1444ae92c85aaee69faeb4. If this is a CI build, something went VERY wrong.
Thank you @dlipicar for sharing this document.
If this is a CI build, something went VERY wrong.
No, I was not using CI builds. I was testing on debug and release builds (build locally).
I checked logs and didn't saw any error on CI builds. So not sure why discover communities is not loading.
Ok, probably its just a UI bug. Added logs in release build and it seems we are getting list of curatedCommunities
Status.log:09-19 13:09:30.973 28426 28566 I ReactNativeJS:handle contract communities {:contractCommunities [0x02b5bdaf5a25fcfe2ee14c501fab1836b8de57f61621080c3d52073d16de0d98d6 0x024fa9114e8884d220111653fe9a2095e62c8d0890198ac9787d512d707e276501 0x027cdda4a01b68c275454dd39da595a568290f3d10c8cb8c7af489ed442703a8c1], :contractFeaturedCommunities [], :communities {}, :unknownCommunities [0x02b5bdaf5a25fcfe2ee14c501fab1836b8de57f61621080c3d52073d16de0d98d6 0x024fa9114e8884d220111653fe9a2095e62c8d0890198ac9787d512d707e276501 0x027cdda4a01b68c275454dd39da595a568290f3d10c8cb8c7af489ed442703a8c1]}
Returned response don't have :contract-featured-communities and only have unknown-communities
.
Well, it doesn't fetch on the webapp either đŸ¤” cc @richard-ramos
It is very unstable. tried this yesterday and it again loaded for 5 mins and only after several reopenings
So far I see there is no capacity to look at that and there are no steps to reproduce it reliably, postponing to 2.32
Bug Report
Problem
Several days ago community directory can be opened without significant delay, currently it is in endless loading state
Expected behavior
can see communities
Actual behavior
Reproduction
Additional Information
logs from desktop: