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

(FunctionClauseError) no function clause matching #32

Open
fabricemrchl opened this issue Apr 24, 2023 · 1 comment
Open

(FunctionClauseError) no function clause matching #32

fabricemrchl opened this issue Apr 24, 2023 · 1 comment
Assignees

Comments

@fabricemrchl
Copy link

fabricemrchl commented Apr 24, 2023

Describe the bug
Internal server error on all request to self hosted instance.

To Reproduce
Steps to reproduce the behavior:

  1. Build docker image based on "Dockerfile" in main branch
  2. Run it
  3. Go to home page

Expected behavior
Display explorer

Screenshots
Error in log :
Request: GET / ** (exit) an exception was raised: ** (FunctionClauseError) no function clause matching in anonymous fn/1 in ZcashExplorerWeb.OrchardPoolLive.get_value_pools/1 (zcash_explorer 0.1.0) lib/zcash_explorer_web/live/orchard_pool_live.ex:42: anonymous fn(%{"id" => "transparent", "monitored" => false}) in ZcashExplorerWeb.OrchardPoolLive.get_value_pools/1 (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2 (zcash_explorer 0.1.0) lib/zcash_explorer_web/live/orchard_pool_live.ex:42: ZcashExplorerWeb.OrchardPoolLive.get_value_pools/1 (zcash_explorer 0.1.0) lib/zcash_explorer_web/live/orchard_pool_live.ex:38: ZcashExplorerWeb.OrchardPoolLive.orchard_value/1 (zcash_explorer 0.1.0) lib/zcash_explorer_web/live/orchard_pool_live.ex:8: anonymous fn/2 in ZcashExplorerWeb.OrchardPoolLive.render/1 (phoenix_live_view 0.17.11) lib/phoenix_live_view/diff.ex:387: Phoenix.LiveView.Diff.traverse/7 (phoenix_live_view 0.17.11) lib/phoenix_live_view/diff.ex:494: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7 (elixir 1.14.4) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3

Additional context
Zcash node 5.4.2 from dockerhub "electriccoinco/zcashd"
Dockerfile seems deprecated I had to change IMAGES to get latest version and succeed to build it.

FROM elixir:1.12.2-alpine AS build
replaced by
FROM elixir:1.14-alpine AS build

and

FROM alpine:3.14 AS app
replaced by
FROM alpine:3.17 AS app

@fabricemrchl
Copy link
Author

More information, pages "blocks" and "nodes" are working fine.
Issue seems related to "Orchard Pool" counter widget in home page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants