Stacks-wallet-web: [2.0.7] Bug: Unable to fetch account data on localhost:3999

Created on 18 Mar 2021  ·  8Comments  ·  Source: blockstack/stacks-wallet-web

Since this morning, the Stacks Web Wallet Extension shows me the following:
image

When I go to the wallet straight in a tab (e.g. chrome-extension://gogakmahkgmhmmbhncacdhhbijmhcdod/full-page.html#/), it works and connects to my localnet. I tried reinstalling the extension, but to no avail.

When I go look in the error log, I see the following (not sure if this is the actual error tho!)
image

Error

Loadable: api.account-data
Message: Unable to fetch account data from http://localhost:3999

Environment

Version: 2.0.7
Branch: main
Commit: 485eea0

P1 🐛 Bug!

All 8 comments

It appears to be attempting (and failing) to connect to a localhost instead of mainnet or testnet. Is that intentional or do you want to switch to another network with the menu in the top-right corner?

It appears to be attempting (and failing) to connect to a localhost instead of mainnet or testnet. Is that intentional or do you want to switch to another network with the menu in the top-right corner?

I believe this is intentional, from this:

it works and connects to my localnet

We should test and confirm if connecting to a localnet works.

@markmhx yes - to clarify: I am trying to connect to my localhost (i.e. my local mocknet). It does not work in the popup (when you click the icon in the top right), but it works when I open a tab manually and paste the URL (which is chrome-extension://gogakmahkgmhmmbhncacdhhbijmhcdod/full-page.html#/ for me).

Not sure if this is a problem on my end, or a bug in the last release (2.0.7). Never had this before with previous releases.

and connecting to mainnet & testnet works fine fyi

@markmhx @aulneau to illustrate with a gif:

wallet

I bet it has to do with some permissions we changed for the CSP, I can play around and do some testing. I wonder what @kyranjamie and @hstove think

To test, remove CSP for development. Would recommend separate html for development/prod if rules need to be loosened in dev.

Hi Team, same issue here - @kyranjamie would you be able to explain how to remove CSP for development?

Note. I'm using http://localhost:20443 and running the Stacks Blockchain locally and without docker.

https://github.com/blockstack/stacks-blockchain

Was this page helpful?
0 / 5 - 0 ratings