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

[MetaMask] Failed to add network following the official docs. #1456

Closed
yangby-cryptape opened this issue Sep 29, 2023 · 7 comments · Fixed by #1459 or axonweb3/axon-docs#205
Closed
Assignees
Labels
document t:feature t:help Extra attention is needed

Comments

@yangby-cryptape
Copy link
Collaborator

Contact Details

No response

What happened

I tried sending a transaction following the steps in the official docs "Send Transactions On Axon Via MetaMask".

But I got the following error when I tried to add the Axon network.

Could not fetch chain ID. Is your RPC URL correct?

I saw an error of a POST request in the debugger of my browser.

I have test the RPC URL that I added and it worked well in terminal.

I'm not an expert on MetaMask.
I guess that the RPC for querying chain ID was not existed.

@yangby-cryptape yangby-cryptape added the t:help Extra attention is needed label Sep 29, 2023
@yangby-cryptape yangby-cryptape changed the title [MetaMask Support] Could not fetch chain ID. Is your RPC URL correct? [MetaMask] Failed to add network following the official docs. Sep 29, 2023
@Flouse
Copy link
Contributor

Flouse commented Sep 29, 2023

I can reproduce this network issue:

image

@Flouse
Copy link
Contributor

Flouse commented Sep 29, 2023

I think the Axon node or https://github.com/axonweb3/axon-proxy may need to support CORS configuration, similar to

--http.corsdomain Comma separated list of domains from which to accept cross origin requests (browser enforced)
https://github.com/ethereum/go-ethereum/tree/master#configuration

References

@yangby-cryptape
Copy link
Collaborator Author

yangby-cryptape commented Sep 29, 2023

I think the Axon node or https://github.com/axonweb3/axon-proxy may need to support CORS configuration, ...

I haven't noticed the project Axon-proxy before.

I created an issue for it, axonweb3/axon-proxy#8, which is related to this issue.

p.s. I noticed that there is an internal axon JSON-RPC server behind cloudflare.

@Flouse
Copy link
Contributor

Flouse commented Oct 1, 2023

@wenyuanhust
Copy link
Contributor

The doc is verified before. If it did not work afterwards, it should be caused by later axon updates. To make the docs always work, we'd better add docs related tests. Have we done this?

@blckngm
Copy link
Contributor

blckngm commented Oct 20, 2023

@Flouse
Copy link
Contributor

Flouse commented Oct 20, 2023

@Flouse Flouse added t:feature and removed feature labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document t:feature t:help Extra attention is needed
Projects
None yet
5 participants