question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dev Wallet only working if deployed manually via Flow CLI (not via Docker)

See original GitHub issue

Describe 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_1 and kitty-items_emulator_1 from 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

image

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:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Boolin365commented, Jan 14, 2022

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!

0reactions
10thfloorcommented, Feb 2, 2022

Confirmed fixed!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found