Dev Wallet only working if deployed manually via Flow CLI (not via Docker)
See original GitHub issueDescribe the bug Bug is identical to https://github.com/onflow/freshmint/issues/16, which makes me think it’s a dependency versioning issue, or something to do with ARM chips.
To Reproduce Steps to reproduce the behavior:
- Install fresh copy of Kitty Items using installation guide
- follow local development guidelines
- open web app (should load correctly with no errors)
- but any action related to wallet discovery on :8701 (e.g. login) fails with a 500 error.
Screenshots/Logs/Output
Web app: _app-cc3bf5ab4d4c9109.js:1 GET http://localhost:8701/api/accounts 500 (Internal Server Error)
Dev Wallet docker output:
> fcl-dev-wallet@0.3.0 start
> next start
ready - started server on 0.0.0.0:8701, url: http://localhost:8701
> fcl-dev-wallet@0.3.0 start
TX:ERROR execution error code 1101: [Error Code: 1101] cadence runtime error Execution failed:
error: [Error Code: 1054] location (undefined) is not a valid location: expecting an AddressLocation, but other location types are passed
--> undefined
error: [Error Code: 1054] location (undefined) is not a valid location: expecting an AddressLocation, but other location types are passed
--> undefined
Workaround/Fix
- manually stop
kitty-items_dev-wallet_1andkitty-items_emulator_1from docker (see image below) - spin up a local emulator and wallet using
flow project start-emulator ./flow.json --dev-wallet - redeploy contracts:
flow project deploy --network emulator

Environment (Optional - Version, OS, Browser, etc.)
- Chrome 97.0.4692.71
- macOS 12.0.1 (ARM chip, M1 Pro)
- Node 16.13.1
- npm 8.3
Additional context (Optional - Anything else about the bug)
Docker desktop shows a warning label amd64 on the dev wallet and emulator images (as you can see from the image above)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
onflow/fcl-dev-wallet: A Flow wallet for development ...
The FCL dev wallet is a mock Flow wallet that simulates the protocols used by FCL to interact with the Flow blockchain on...
Read more >Deploying Docker containers on Azure
Docker not only runs containers locally, but also enables developers to seamlessly deploy Docker containers on ACI using docker run or deploy ......
Read more >Installing and working with the devcontainer CLI
Documentation on using the development container (dev container) command-line interface.
Read more >Deploying with Docker
You need to install docker and docker-compose (if using Linux; on Windows and ... This is not our recommended development flow and most...
Read more >Prefect Deployments FAQ (PDF)
How can I get started with deployments? Discourse - getting started recipes incl. AWS, GCP and Azure specific setup How to deploy all...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I can confirm that after completely rebuilding docker from scratch, I no longer get the 500 error. So far, everything seems to be working correctly on dev/emulator without needing the workaround. Thanks guys!
Confirmed fixed!