MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
12k stars 4.91k forks source link

[Bug]: Unable to add local cosmic network #28009

Open hjetpoluru opened 1 week ago

hjetpoluru commented 1 week ago

Describe the bug

Unable to add a local Cosmic network due to the following error, even though the RPC URL is correct Could not fetch chain ID. Is your RPC URL correct?

Expected behavior

The local Cosmic network should be added successfully without any errors.

Screenshots/Recordings

Screenshot 2024-10-22 at 10 38 36 AM

Steps to reproduce

  1. Open the application and click on the drop down for the networks.
  2. Click on "Add a custom network" to add a new network.
  3. Enter the details for the local Cosmic network, including the correct RPC URL(http://testnet.cosmicchain.site:3344).
  4. Observe the error message: Could not fetch chain ID. Is your RPC URL correct?

Error messages or log output

No response

Detection stage

In production (default)

Version

12.5.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

salimtb commented 1 week ago

hey @hjetpoluru , Are we certain that http://testnet.cosmicchain.site:3344 is a valid RPC endpoint? The following curl command couldn't resolve the host:

url -X POST https://testnet.cosmicchain.site:3344/ \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
bergeron commented 1 week ago

The issue says its a local network. Is there any way to reproduce since the domain is not public?

host cosmicchain.site
Host cosmicchain.site not found: 3(NXDOMAIN)

host testnet.cosmicchain.site
Host testnet.cosmicchain.site not found: 3(NXDOMAIN)
danjm commented 1 week ago

The report on slack says "cosmos" not "cosmic"