cryptoadvance / cryptoadvance/specter-desktop

AddressDataElement not loading when running with Docker

Open
#2,491 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
847
Forks
259
Avg merge
6d 18h
Merged PRs (30d)
2

Description

**Describe the bug**
When running Specter inside docker, either with the official image _docker run -it --rm -p 25441:25441 ghcr.io/cryptoadvance/specter-desktop:v2.1.1_ or even when moving specterd into a docker container manually (specterd runs correctly outside of docker), the modal that pops up when you click on an address inside a wallet shows that address data is loading but never fully populates.

After some troubleshooting, I am quite sure the issue happens upon calling this function: https://github.com/cryptoadvance/specter-desktop/blob/db39a6701b7b1f4b044f30a694a942bc2c230fb7/src/cryptoadvance/specter/templates/includes/address-data.html#L56

It probably has something to do with the CSRF token behind handled not correctly when running inside docker.

**To Reproduce**
Run docker container, set up a wallet and click on an address to see the modal pop up but not populate.

**Expected behavior**
The modal should populate with address data, QR Code, etc.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- Where is your node running: Connected to external electrum
- Where is your specter running: Docker
- If you're running a binary, which OS: Linux
- Browser Firefox, Chrome
- Specter Version: Seems to affect all versions I tested

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.