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 in Explorer.MicroserviceInterfaces.BENS.item_to_address_hash_strings/1 #9625

Closed
vbaranov opened this issue Mar 13, 2024 · 0 comments · Fixed by #9640
Assignees
Labels
bug 🐛 Something isn't working

Comments

@vbaranov
Copy link
Member

vbaranov commented Mar 13, 2024

  | {"time":"2024-03-13T06:32:20.984Z","severity":"error","message":"#PID<0.4847.2580> running BlockScoutWeb.Endpoint (connection #PID<0.8622.2568>, stream id 21) terminated\nServer: base.blockscout.com:80 (http)\nRequest: GET /api/v2/addresses/0x0d801699678375e43D14f67453e24F17eBbAef8A/transactions\n** (exit) an exception was raised:\n    ** (FunctionClauseError) no function clause matching in Explorer.MicroserviceInterfaces.BENS.item_to_address_hash_strings/1\n        (explorer 6.2.2) lib/explorer/microservice_interfaces/bens.ex:296: Explorer.MicroserviceInterfaces.BENS.item_to_address_hash_strings(%Explorer.Chain.Transaction{__meta__: #Ecto.Schema.Metadata<:loaded, \"transactions\">, hash: %Explorer.Chain.Hash{byte_count: 32, bytes: <<207, 110, 180, 146, 59, 176, 21, 181, 239, 27, 209, 93, 13, 151, 127, 134, 164, 163, 209, 70, 105, 11, 212, 224, 84, 248, 35, 246, 203, 140, 252, 156>>}, block_number: 10920083, block_consensus: true, block_timestamp: ~U[2024-02-22 19:18:33.000000Z], cumulative_gas_used: Decimal.new(\"728109\"), earliest_processing_start: nil, error: nil, gas: Decimal.new(\"387725\"), gas_price: #Explorer.Chain.Wei<4356>, gas_used: Decimal.new(\"347902\"), index: 5, created_contract_code_indexed_at: nil, input: %Explorer.Chain.Data{bytes: <<240, 183, 185, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 252, 120, 142, 200, 10, 109, 100, 69, 220, 23, 162, 52, 63, 105, 147, 230, 72, 74, ...>>}, nonce: 338, r: Decimal.new(\"14558757694678879852490114959971033650699976042273525086998852539925289985311\"), s: Decimal.new(\"21773009139972647551970172631774893003047064338514511166246626970051744679244\"), status: :ok, v: Decimal.new(\"0\"), value: #Explorer.Chain.Wei<0>, revert_reason: nil, max_priority_fee_per_gas: #Explorer.Chain.Wei<3978>, max_fee_per_gas: #Explorer.Chain.Wei<5052>, type: 2, has_error_in_internal_txs: false, has_token_transfers: false, transaction_fee_log: nil, transaction_fee_token: nil, old_block_hash: %Explorer.Chain.Hash{byte_count: 32, bytes: <<238, 1, 252, 106, 26, 168, 254, 39, 6, 39, 250, 92, 185, 92, 19, 5, 218, 241, 178, ...>>}, inserted_at: ~U[2024-02-22 19:18:33.335524Z], updated_at: ~U[2024-02-22 19:19:33.643967Z], block_hash: %Explorer.Chain.Hash{byte_count: 32, bytes: <<238, 1, 252, 106, 26, 168, 254, 39, 6, 39, 250, 92, 185, 92, 19, 5, ...>>}, block: %Explorer.Chain.Block{__meta__: #Ecto.Schema.Metadata<:loaded, \"blocks\">, hash: %Explorer.Chain.Hash{byte_count: 32, bytes: <<238, 1, 252, 106, 26, 168, 254, 39, 6, 39, 250, 92, 185, ...>>}, consensus: true, difficulty: Decimal.new(\"0\"), gas_limit: Decimal.new(\"30000000\"), gas_used: Decimal.new(\"1426770\"), nonce: %Explorer.Chain.Hash{byte_count: 8, bytes: <<0, 0, 0, 0, 0, 0, 0, 0>>}, number: 10920083, size: 3807, timestamp: ~U[2024-02-22 19:18:33.000000Z], total_difficulty: Decimal.new(\"0\"), refetch_needed: false, base_fee_per_gas: #Explorer.Chain.Wei<378>, is_empty: false, inserted_at: ~U[2024-02-22 19:18:33.335524Z], updated_at: ~U[2024-02-22 19:51:54.183193Z], miner_hash: %Explorer.Chain.Hash{...}, ...}, forks: #Ecto.Association.NotLoaded<association :forks is not loaded>, from_address_hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<13, 128, 22, 153, 103, 131, 117, 228, 61, 20, 246, 116, 83, ...>>}, from_address: %Explorer.Chain.Address{__meta__: #Ecto.Schema.Metadata<:loaded, \"addresses\">, hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<13, 128, 22, 153, 103, 131, 117, 228, 61, 20, ...>>}, fetched_coin_balance: #Explorer.Chain.Wei<3340355927546030>, fetched_coin_balance_block_number: 11761093, contract_code: nil, nonce: 377, decompiled: false, verified: false, has_decompiled_code?: nil, stale?: nil, transactions_count: 411, token_transfers_count: 310, gas_used: 55880805, ens_domain_name: nil, ...}, internal_transactions: #Ecto.Association.NotLoaded<association :internal_transactions is not loaded>, logs: #Ecto.Association.NotLoaded<association :logs is not loaded>, token_transfers: #Ecto.Association.NotLoaded<association :token_transfers is not loaded>, transaction_actions: #Ecto.Association.NotLoaded<association :transaction_actions is not loaded>, to_address_hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<109, 161, 59, 222, 34, 74, 5, ...>>}, to_address: %Explorer.Chain.Address{__meta__: #Ecto.Schema.Metadata<:loaded, \"addresses\">, hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<109, 161, 59, 222, ...>>}, fetched_coin_balance: #Explorer.Chain.Wei<0>, fetched_coin_balance_block_number: 11745942, contract_code: %Explorer.Chain.Data{bytes: <<96, 128, ...>>}, nonce: nil, decompiled: false, verified: false, ...}, uncles: #Ecto.Association.NotLoaded<association :uncles is not loaded>, created_contract_address_hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<226, 179, 63, 40, ...>>}, created_contract_address: %Explorer.Chain.Address{__meta__: #Ecto.Schema.Metadata<:loaded, \"addresses\">, hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<226, ...>>}, fetched_coin_balance: #Explorer.Chain.Wei<0>, fetched_coin_balance_block_number: 10920109, contract_code: %Explorer.Chain.Data{...}, ...}, l1_fee: #Explorer.Chain.Wei<107123637825929>, l1_fee_scalar: Decimal.new(\"0.684\"), l1_gas_price: #Explorer.Chain.Wei<58788853451>, l1_gas_used: Decimal.new(\"2664\"), l1_tx_origin: nil, ...})\n        (explorer 6.2.2) lib/explorer/microservice_interfaces/bens.ex:215: anonymous fn/2 in Explorer.MicroserviceInterfaces.BENS.preload_ens_to_list/1\n        (elixir 1.14.5) lib/enum.ex:2468: Enum.\"-reduce/3-lists^foldl/2-0-\"/3\n        (explorer 6.2.2) lib/explorer/microservice_interfaces/bens.ex:214: Explorer.MicroserviceInterfaces.BENS.preload_ens_to_list/1\n        (block_scout_web 6.2.2) lib/block_scout_web/controllers/api/v2/address_controller.ex:147: BlockScoutWeb.API.V2.AddressController.transactions/2\n        (block_scout_web 6.2.2) lib/block_scout_web/controllers/api/v2/address_controller.ex:1: BlockScoutWeb.API.V2.AddressController.action/2\n        (block_scout_web 6.2.2) lib/block_scout_web/controllers/api/v2/address_controller.ex:1: BlockScoutWeb.API.V2.AddressController.phoenix_controller_pipeline/2\n        (phoenix 1.5.14) lib/phoenix/router.ex:352: Phoenix.Router.__call__/2","metadata":{"error":{"initial_call":null,"reason":"** (FunctionClauseError) no function clause matching in Explorer.MicroserviceInterfaces.BENS.item_to_address_hash_strings/1\n    (explorer 6.2.2) lib/explorer/microservice_interfaces/bens.ex:296: Explorer.MicroserviceInterfaces.BENS.item_to_address_hash_strings(%Explorer.Chain.Transaction{__meta__: #Ecto.Schema.Metadata<:loaded, \"transactions\">, hash: %Explorer.Chain.Hash{byte_count: 32, bytes: <<207, 110, 180, 146, 59, 176, 21, 181, 239, 27, 209, 93, 13, 151, 127, 134, 164, 163, 209, 70, 105, 11, 212, 224, 84, 248, 35, 246, 203, 140, 252, 156>>}, block_number: 10920083, block_consensus: true, block_timestamp: ~U[2024-02-22 19:18:33.000000Z], cumulative_gas_used: Decimal.new(\"728109\"), earliest_processing_start: nil, error: nil, gas: Decimal.new(\"387725\"), gas_price: #Explorer.Chain.Wei<4356>, gas_used: Decimal.new(\"347902\"), index: 5, created_contract_code_indexed_at: nil, input: %Explorer.Chain.Data{bytes: <<240, 183, 185, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 252, 120, 142, 200, 10, 109, 100, 69, 220, 23, 162, 52, 63, 105, 147, 230, 72, 74, ...>>}, nonce: 338, r: Decimal.new(\"14558757694678879852490114959971033650699976042273525086998852539925289985311\"), s: Decimal.new(\"21773009139972647551970172631774893003047064338514511166246626970051744679244\"), status: :ok, v: Decimal.new(\"0\"), value: #Explorer.Chain.Wei<0>, revert_reason: nil, max_priority_fee_per_gas: #Explorer.Chain.Wei<3978>, max_fee_per_gas: #Explorer.Chain.Wei<5052>, type: 2, has_error_in_internal_txs: false, has_token_transfers: false, transaction_fee_log: nil, transaction_fee_token: nil, old_block_hash: %Explorer.Chain.Hash{byte_count: 32, bytes: <<238, 1, 252, 106, 26, 168, 254, 39, 6, 39, 250, 92, 185, 92, 19, 5, 218, 241, 178, ...>>}, inserted_at: ~U[2024-02-22 19:18:33.335524Z], updated_at: ~U[2024-02-22 19:19:33.643967Z], block_hash: %Explorer.Chain.Hash{byte_count: 32, bytes: <<238, 1, 252, 106, 26, 168, 254, 39, 6, 39, 250, 92, 185, 92, 19, 5, ...>>}, block: %Explorer.Chain.Block{__meta__: #Ecto.Schema.Metadata<:loaded, \"blocks\">, hash: %Explorer.Chain.Hash{byte_count: 32, bytes: <<238, 1, 252, 106, 26, 168, 254, 39, 6, 39, 250, 92, 185, ...>>}, consensus: true, difficulty: Decimal.new(\"0\"), gas_limit: Decimal.new(\"30000000\"), gas_used: Decimal.new(\"1426770\"), nonce: %Explorer.Chain.Hash{byte_count: 8, bytes: <<0, 0, 0, 0, 0, 0, 0, 0>>}, number: 10920083, size: 3807, timestamp: ~U[2024-02-22 19:18:33.000000Z], total_difficulty: Decimal.new(\"0\"), refetch_needed: false, base_fee_per_gas: #Explorer.Chain.Wei<378>, is_empty: false, inserted_at: ~U[2024-02-22 19:18:33.335524Z], updated_at: ~U[2024-02-22 19:51:54.183193Z], miner_hash: %Explorer.Chain.Hash{...}, ...}, forks: #Ecto.Association.NotLoaded<association :forks is not loaded>, from_address_hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<13, 128, 22, 153, 103, 131, 117, 228, 61, 20, 246, 116, 83, ...>>}, from_address: %Explorer.Chain.Address{__meta__: #Ecto.Schema.Metadata<:loaded, \"addresses\">, hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<13, 128, 22, 153, 103, 131, 117, 228, 61, 20, ...>>}, fetched_coin_balance: #Explorer.Chain.Wei<3340355927546030>, fetched_coin_balance_block_number: 11761093, contract_code: nil, nonce: 377, decompiled: false, verified: false, has_decompiled_code?: nil, stale?: nil, transactions_count: 411, token_transfers_count: 310, gas_used: 55880805, ens_domain_name: nil, ...}, internal_transactions: #Ecto.Association.NotLoaded<association :internal_transactions is not loaded>, logs: #Ecto.Association.NotLoaded<association :logs is not loaded>, token_transfers: #Ecto.Association.NotLoaded<association :token_transfers is not loaded>, transaction_actions: #Ecto.Association.NotLoaded<association :transaction_actions is not loaded>, to_address_hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<109, 161, 59, 222, 34, 74, 5, ...>>}, to_address: %Explorer.Chain.Address{__meta__: #Ecto.Schema.Metadata<:loaded, \"addresses\">, hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<109, 161, 59, 222, ...>>}, fetched_coin_balance: #Explorer.Chain.Wei<0>, fetched_coin_balance_block_number: 11745942, contract_code: %Explorer.Chain.Data{bytes: <<96, 128, ...>>}, nonce: nil, decompiled: false, verified: false, ...}, uncles: #Ecto.Association.NotLoaded<association :uncles is not loaded>, created_contract_address_hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<226, 179, 63, 40, ...>>}, created_contract_address: %Explorer.Chain.Address{__meta__: #Ecto.Schema.Metadata<:loaded, \"addresses\">, hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<226, ...>>}, fetched_coin_balance: #Explorer.Chain.Wei<0>, fetched_coin_balance_block_number: 10920109, contract_code: %Explorer.Chain.Data{...}, ...}, l1_fee: #Explorer.Chain.Wei<107123637825929>, l1_fee_scalar: Decimal.new(\"0.684\"), l1_gas_price: #Explorer.Chain.Wei<58788853451>, l1_gas_used: Decimal.new(\"2664\"), l1_tx_origin: nil, ...})\n    (explorer 6.2.2) lib/explorer/microservice_interfaces/bens.ex:215: anonymous fn/2 in Explorer.MicroserviceInterfaces.BENS.preload_ens_to_list/1\n    (elixir 1.14.5) lib/enum.ex:2468: Enum.\"-reduce/3-lists^foldl/2-0-\"/3\n    (explorer 6.2.2) lib/explorer/microservice_interfaces/bens.ex:214: Explorer.MicroserviceInterfaces.BENS.preload_ens_to_list/1\n    (block_scout_web 6.2.2) lib/block_scout_web/controllers/api/v2/address_controller.ex:147: BlockScoutWeb.API.V2.AddressController.transactions/2\n    (block_scout_web 6.2.2) lib/block_scout_web/controllers/api/v2/address_controller.ex:1: BlockScoutWeb.API.V2.AddressController.action/2\n    (block_scout_web 6.2.2) lib/block_scout_web/controllers/api/v2/address_controller.ex:1: BlockScoutWeb.API.V2.AddressController.phoenix_controller_pipeline/2\n    (phoenix 1.5.14) lib/phoenix/router.ex:352: Phoenix.Router.__call__/2\n"}}} |  

Example of affected page:
https://base.blockscout.com/api/v2/addresses/0x0d801699678375e43D14f67453e24F17eBbAef8A/transactions

returns 500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants