Remix runtime errors
After adding and activating the plugin I give permissions 4 times. Then in Starknet logo left sidebar I see this error :
Uncaught runtime errors:
×
ERROR
Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
at Object.get (https://cairo-remix-test.nethermind.io/static/js/bundle.js:7259:18)
at https://cairo-remix-test.nethermind.io/static/js/bundle.js:2926:76
at commitHookEffectListMount (https://cairo-remix-test.nethermind.io/static/js/bundle.js:47780:30)
at commitPassiveMountOnFiber (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49273:17)
at commitPassiveMountEffects_complete (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49245:13)
at commitPassiveMountEffects_begin (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49235:11)
at commitPassiveMountEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49225:7)
at flushPassiveEffectsImpl (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51110:7)
at flushPassiveEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51062:18)
at performSyncWorkOnRoot (https://cairo-remix-test.nethermind.io/static/js/bundle.js:50279:7)
ERROR
Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
at Object.get (https://cairo-remix-test.nethermind.io/static/js/bundle.js:7259:18)
at https://cairo-remix-test.nethermind.io/static/js/bundle.js:2926:76
at commitHookEffectListMount (https://cairo-remix-test.nethermind.io/static/js/bundle.js:47780:30)
at commitPassiveMountOnFiber (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49273:17)
at commitPassiveMountEffects_complete (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49245:13)
at commitPassiveMountEffects_begin (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49235:11)
at commitPassiveMountEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49225:7)
at flushPassiveEffectsImpl (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51110:7)
at flushPassiveEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51062:18)
at performSyncWorkOnRoot (https://cairo-remix-test.nethermind.io/static/js/bundle.js:50279:7)
ERROR
Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
at Object.get (https://cairo-remix-test.nethermind.io/static/js/bundle.js:7259:18)
at https://cairo-remix-test.nethermind.io/static/js/bundle.js:2926:76
at commitHookEffectListMount (https://cairo-remix-test.nethermind.io/static/js/bundle.js:47780:30)
at commitPassiveMountOnFiber (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49273:17)
at commitPassiveMountEffects_complete (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49245:13)
at commitPassiveMountEffects_begin (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49235:11)
at commitPassiveMountEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49225:7)
at flushPassiveEffectsImpl (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51110:7)
at flushPassiveEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51062:18)
at performSyncWorkOnRoot (https://cairo-remix-test.nethermind.io/static/js/bundle.js:50279:7)
In Plugin Manager Permissions - No Permission requested yet.
How to fix this?
@kbachnik quick question, are you using Brave with Shields on?
@kbachnik quick question, are you using Brave with Shields on? No, just Chrome
@kbachnik, can we ask you for a few more details of this behaviour? We suspect what may be the problem, but to be clear, would you like to fill in the details as per below?
To Reproduce Steps to reproduce the behavior (from a clean start):
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
NOTE: Please clearly indicate the time (with timezone or in UTC) when you have observed the error.
Screenshots If applicable, add screenshots to help explain your problem.
Cairo files Please include the Cairo source file.
Starknet Remix Plugin details
- Are you using the default Starknet plugin from Remix marketplace, or any self-configured plugin instance?
- What Environment are you using (Remote/Local Devnet, a wallet configuration)?
Host system (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari], any nonstandard browser plugins/adblocks
- Version [e.g. 22]
Go to: https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js
Click on : Plugin Manager
Searching: Starknet
Click on Activate
Permissions Accept :
Write file permission error: Error from IDE : [TIMEOUT] Timeout for call writeFile from Starknet
Checking the Permissions tab :
Checking the Straknet logo on the sidebar :
Then i refreshed the page and checked the Starknet logo again :
Second try
Go to: https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js
Click on : Plugin Manager
Searching: Starknet
Click on Activate
First Permission Accept :
Second Repmission Accept :
Tird Repmission Accept :
Fourth Repmission Accept :
Write file permission error: Error from IDE : [TIMEOUT] Timeout for call writeFile from Starknet
Checking the Permissions tab :
Checking the Straknet logo on the sidebar :
Then i refreshed the page and checked the Starknet logo again :
===============================================================================
I am using this instruction from nethermind-eth https://medium.com/nethermind-eth/unlocking-onboarding-to-starknet-an-overview-of-the-starknet-remix-plugin-6b0658e73521
The time, when i indicate the Error - 00:50-01:05UTC
Im using the default Starknet plugin from Remix
Im using a wallet configuration
All Cairo files that i have : hello_world.zip
System Spec : OS - Windows 11 Version 10.0.22621 Build 22621 Browser - Chrome Version 116.0.5845.188 (Official Build) (64-bit)
@kbachnik thank you for your patience in getting all the details to us! Your attempts appear to have coincided with plugin backend outages which we have experienced during the last few days. We believe we have rectified these now - would you like to give the plugin another spin and confirm it is now compiling as expected?
hello! I am getting a similar error.
To Reproduce Steps to reproduce the behavior (from a clean start):
Go to Remix.
Since we're using Brave, turn off 'Shields Up'.
Re-open Remix.
Click on the extensions and search for the StarkNet plugin.
Click on the StarkNet plugin.
See error: The plugin appears activated, but it doesn't redirect to the permissions window, and there's no option to compile the Cairo contract.
@kbachnik thank you for your patience in getting all the details to us! Your attempts appear to have coincided with plugin backend outages which we have experienced during the last few days. We believe we have rectified these now - would you like to give the plugin another spin and confirm it is now compiling as expected?
Same error today
@henryf10h An empty plugin panel indicates the plugin hasn't loaded. This can be caused by connectivity problems - the following link must work from your browser, and must return a blank screen (with React-related HTML markup visible in page source): https://cairo-remix-test.nethermind.io/ . Can you test that and confirm the URL responds correctly.
Note: The plugin, when launched, must be able to connect to following URLs as well:
- https://cairo-compile-remix-test.nethermind.io/health should respond with
OK - https://starknet-devnet-dev.nethermind.io/feeder_gateway/get_transaction_status?transactionHash=0xbadfad should respond with
{"tx_status":"NOT_RECEIVED"}
Note2: I see in your URL bar that you have been trying to connect to Remix/Starknet plugin using an external link, with incorrect activate parameter - the correct value is activate=Starknet (as opposed to activate=Starknet-cairo1-compiler on your screenshot). In other words, you seem to be using an old external reference link - the correct one is: https://remix.ethereum.org/#activate=Starknet
@kbachnik we were digging a bit deeper in the symptoms you are observing. The stacktrace error indicates that the browser is blocking access to localStorage element of the webpage. Possible causes are:
- Chrome is launched in incognito mode
- Chrome setting "Block third-party cookies" is activated (see chrome://settings/cookies):
Note: even with "Block third-party cookies" activate, exceptions can be added to a whitelist - the whitelist must include: - https://remix.ethereum.org - https://cairo-remix-test.nethermind.io
- ...also see this link for potential hints.
I hope this helps now.
Hello @stranger80 , So far, I have done the following:
- I went to https://cairo-remix-test.nethermind.io/ and I still got a white screen.
- Then I connected to the next two links you have suggested to me, in both cases I got the expected responses ('ok' and '{"tx_status":"NOT_RECEIVED"}').
- finally I go to the final link https://remix.ethereum.org/#activate=Starknet and I still can not see anything to compile.
- I noted, when I go to the final link, I get defaulted the following link: https://remix.ethereum.org/#activate=Starknet&lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js It seems to be using a solidity's compiler version.
@henryf10h would you like to join our Telegram channel (as posted on the repo's main README.md header)? Seems like something is interfering with js code on the Remix page, but that requires more sophisticated debugging (eg. clear the js console and network traces, restart Remix UI from the https://remix.ethereum.org/#activate=Starknet and watch Console and Network for errors...)
Also, do other Remix plugins launch for you (eg. Tenderly)?
I cleared js console and network traces. After restarting I got the following errors:
@henryf10h @kbachnik by any chance, are any other Remix plugins working for you right now?
You might want to try using a VPN, there has been issues reported in our telegram regarding the list of plugins not showing due to location restrictions.
@EdgarBarrantes other Remix plugins work well I have tried all the steps with VPN enabled but the error remains the same
ok, I just used VPN, and I still get the same.
pd: I can not see other plugins such as tenderly.
Thanks for your patience and reports :)
@henryf10h, could you try out connecting to a different server? E.g.: France, USA? If you can't see the other plugins it's most likely the location issue reported in Telegram unrelated to this plugin.
@kbachnik, do you think you could clean cache ("Clear site data" in the Application tab in developer tools) and reload, we made some changes that should fix the timeout (we're working on more optimisations), also, be sure you're not getting running in incognito mode / blocking 3rd party cookies like stranger80 said. Thanks a lot.
@EdgarBarrantes Same error
Hello @EdgarBarrantes ,
I still get the same blank page even if I set the VPN to USA.
Hello team, Is there any clue what could be happening? I have been trying to connect from different vpn's locations. Is there a remix tool that supports cairo in VSC?