ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.46k stars 952 forks source link

Internal JSON-RPC error #3369

Open johnnyzen opened 1 year ago

johnnyzen commented 1 year ago

Hi I am getting Internal JSON-RPC error trying to publish a smart contract on mainnet but VM-London is fine? any ideas on whats happening? was working the other day, same contract code I am thinking issue with Remix?

Bitcoinpunks commented 1 year ago

Having the same issue

Aniket-Engg commented 1 year ago

Hello @johnnyzen @Bitcoinpunks , can you add a bit more details? What do you mean by publish a smart contract? Can you add an error screenshot?

johnnyzen commented 1 year ago

Sorry, deploying a new contract.

I can deploy on VM-London, but using Brave wallet, I cannot deploy to mainnet.

This is a contract that has previously worked with no changes (prob last tested a week or two ago)

johnnyzen commented 1 year ago

I am not getting a full error. It literally just says "Internal JSON-RPC error" in the console output.

johnnyzen commented 1 year ago

Also to note, the sample sol contracts on remix, are also failing on being deployed with the same error.

johnnyzen commented 1 year ago

image

yann300 commented 1 year ago

to which network are you connected too? can you try to deploy to another network?

johnnyzen commented 1 year ago

We have tried Polygon mainnet and mumbai Polygon test network. At first we thought it was the test network, so we tried mainnet and that failed too.

johnnyzen commented 1 year ago

We are not seeing any reported issues on these networks

Bitcoinpunks commented 1 year ago

Have exactly them same. I could just for now test it with Brave.

johnnyzen commented 1 year ago

I managed to deploy the contract using metamask/firefox and visual studio code extension. Not sure what issue is, or if its related to brave browser/brave wallet.

Seems like its failing to bring up the brave wallet dialog to pay for deployment, maybe why it works in vm-london.

I'm really sorry, I dont know how to find out the reasons or help with anymore error data.

Bitcoinpunks commented 1 year ago

Thanks Johnny i will try that as well.

On Tue, Feb 14, 2023, 22:35 johnnyzen @.***> wrote:

I managed to deploy the contract using metamask/firefox and visual studio code extension. Not sure what issue is, or if its related to brave browser.

— Reply to this email directly, view it on GitHub https://github.com/ethereum/remix-project/issues/3369#issuecomment-1430408367, or unsubscribe https://github.com/notifications/unsubscribe-auth/A54PQTT4ZUFSUYNSJMKQRIDWXP3APANCNFSM6AAAAAAU226P4E . You are receiving this because you were mentioned.Message ID: @.***>

Bitcoinpunks commented 1 year ago

When i tried to deploy my contract via VScode -> ganache -> wallet connect -> metamask -> goerli, I get the following error message: Error: Error from IDE : There are errors deploying: Error: Invalid JSON RPC response: {"id":188,"jsonrpc":"2.0"}

Any ideas?

yann300 commented 1 year ago

could you sent over the URL you are curently using to connect to the external node?

Bitcoinpunks commented 1 year ago

Not sure how to see that since in am connecting it to wallet connect and meta mask

Or is that the link in the QR of WC?

On Wed, Feb 15, 2023, 12:06 yann300 @.***> wrote:

could you sent over the URL you are curently using to connect to the external node?

— Reply to this email directly, view it on GitHub https://github.com/ethereum/remix-project/issues/3369#issuecomment-1431168414, or unsubscribe https://github.com/notifications/unsubscribe-auth/A54PQTSRIJDBRANTU2BEWL3WXS2B3ANCNFSM6AAAAAAU226P4E . You are receiving this because you were mentioned.Message ID: @.***>

yann300 commented 1 year ago

could you try with metamask instead of with the brave wallet?

Bitcoinpunks commented 1 year ago

This was the path I went to try it VScode -> ganache -> wallet connect -> metamask -> goerli

I can perfectly deploy it on local though.

johnnyzen commented 1 year ago

@Bitcoinpunks have you tried a different rpc? are you using polygon? if so, which RPC are you using?

Bitcoinpunks commented 1 year ago

I am using Ethereum and then connect to goerli. Is there a way to connect to another RPC?

On Wed, Feb 15, 2023, 12:37 johnnyzen @.***> wrote:

@Bitcoinpunks https://github.com/Bitcoinpunks have you tried a different rpc? are you using polygon? if so, which RPC are you using?

— Reply to this email directly, view it on GitHub https://github.com/ethereum/remix-project/issues/3369#issuecomment-1431230253, or unsubscribe https://github.com/notifications/unsubscribe-auth/A54PQTWUCK27GDYLKMUXT23WXS5VZANCNFSM6AAAAAAU226P4E . You are receiving this because you were mentioned.Message ID: @.***>

johnnyzen commented 1 year ago

Yes, from metamask: https://metamask.zendesk.com/hc/en-us/articles/360043227612-How-to-add-a-custom-network-RPC

Not sure if it will help you, my knowledge is rather limited :)

Bitcoinpunks commented 1 year ago

Thanks! I'll give it a shot. Pretty noobish still here as well. So all tips are welcome.

On Wed, Feb 15, 2023, 14:01 johnnyzen @.***> wrote:

Yes, from metamask: https://metamask.zendesk.com/hc/en-us/articles/360043227612-How-to-add-a-custom-network-RPC

Not sure if it will help you, my knowledge is rather limited :)

— Reply to this email directly, view it on GitHub https://github.com/ethereum/remix-project/issues/3369#issuecomment-1431332454, or unsubscribe https://github.com/notifications/unsubscribe-auth/A54PQTX4OQIEBMBCWWTLZ2DWXTHRHANCNFSM6AAAAAAU226P4E . You are receiving this because you were mentioned.Message ID: @.***>

Bitcoinpunks commented 1 year ago

I could actually deploy to Goerli with metamask.

johnnyzen commented 1 year ago

Can anyone test on brave browser / brave wallet?

kilogold commented 1 year ago

I had to make an entire eth-brownie project to workaround this issue with Brave Wallet.

I tried using Chrome w/ Metamask and still broken. I need to use expert dev methods to get my contracts deployed, because Remix IDE just won't work for the same reasons listed on this thread.

tl;dr - my fix was not to use Remix, which is not helpful.

yann300 commented 1 year ago

@kilogold could you try again using this fix https://deploy-preview-3477--remixproject.netlify.app/ this will probably released tomorrow. Thanks for your patience.

kilogold commented 1 year ago

Same result, @yann300. That said, Chrome + Metamask is indeed working. This softens my workaround, but I've personally already got hardhat & brownie projects.

I'm unblocked, but still unable to use Brave for Remix IDE dev.

romtecmax commented 1 year ago

I'm having the same issue

Remix on brave does not work MyEtherWallet on brave does not work either Remix on Metamask (Firefox) works

seems to be a brave-related issue (i opened an issue in their forum here

Bitcoinpunks commented 1 year ago

I think so too! 👍🏼

On Wed, Mar 22, 2023, 05:00 romtecmax @.***> wrote:

I'm having the same issue

Remix on brave does not work MyEtherWallet on brave does not work either Remix on Metamask (Firefox) works

seems to be a brave-related issue

— Reply to this email directly, view it on GitHub https://github.com/ethereum/remix-project/issues/3369#issuecomment-1478887719, or unsubscribe https://github.com/notifications/unsubscribe-auth/A54PQTX3V44EEVT3BTI527DW5J2NFANCNFSM6AAAAAAU226P4E . You are receiving this because you were mentioned.Message ID: @.***>

romtecmax commented 1 year ago

This was a brave issue and acording to them it has been solved - i didn't double check, but i assume it works now. see here