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

[2.0.7] Bug: Unable to fetch account data on localhost:3999 #1087

Closed
philiphacks opened this issue Mar 18, 2021 · 9 comments
Closed

[2.0.7] Bug: Unable to fetch account data on localhost:3999 #1087

philiphacks opened this issue Mar 18, 2021 · 9 comments
Labels
bug Functionality broken bug-p1 Critical functionality broken for many customers, with no clear workarounds

Comments

@philiphacks
Copy link

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

@markmhendrickson
Copy link
Collaborator

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?

@markmhendrickson markmhendrickson added bug-p1 Critical functionality broken for many customers, with no clear workarounds bug Functionality broken labels Mar 19, 2021
@markmhendrickson markmhendrickson added this to Stacks Wallet (Web) in 🧊 UserX Icebox Mar 19, 2021
@aulneau
Copy link
Contributor

aulneau commented Mar 19, 2021

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.

@philiphacks
Copy link
Author

@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.

@philiphacks
Copy link
Author

and connecting to mainnet & testnet works fine fyi

@philiphacks
Copy link
Author

@markmhx @aulneau to illustrate with a gif:

wallet

@aulneau
Copy link
Contributor

aulneau commented Mar 19, 2021

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

@kyranjamie
Copy link
Collaborator

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

@Sydney-o9
Copy link

Sydney-o9 commented Mar 20, 2021

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

@markmhendrickson
Copy link
Collaborator

Closing for lack of activity. Please reopen as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality broken bug-p1 Critical functionality broken for many customers, with no clear workarounds
Projects
None yet
Development

No branches or pull requests

6 participants