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

Paging params: no function clause matching in Integer.parse/2 #8549

Closed
vbaranov opened this issue Sep 27, 2023 · 0 comments · Fixed by #8550
Closed

Paging params: no function clause matching in Integer.parse/2 #8549

vbaranov opened this issue Sep 27, 2023 · 0 comments · Fixed by #8550
Assignees
Labels
bug 🐛 Something isn't working

Comments

@vbaranov
Copy link
Member

Description

Request: GET /api/v2/addresses/0xffffFFFfFFffffffffffffffFfFFFfffFFFfFFfE/transactions?block_number=2012100&index[]=0&items_count=50
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in Integer.parse/2
        (elixir 1.14.0) lib/integer.ex:275: Integer.parse(["0"], 10)
        (block_scout_web 5.2.3) lib/block_scout_web/chain.ex:263: BlockScoutWeb.Chain.paging_options/1
        (block_scout_web 5.2.3) lib/block_scout_web/controllers/api/v2/address_controller.ex:116: BlockScoutWeb.API.V2.AddressController.transactions/2
        (block_scout_web 5.2.3) lib/block_scout_web/controllers/api/v2/address_controller.ex:1: BlockScoutWeb.API.V2.AddressController.action/2
        (block_scout_web 5.2.3) lib/block_scout_web/controllers/api/v2/address_controller.ex:1: BlockScoutWeb.API.V2.AddressController.phoenix_controller_pipeline/2
        (phoenix 1.5.14) lib/phoenix/router.ex:352: Phoenix.Router.__call__/2
        (phoenix 1.5.14) lib/phoenix/router/route.ex:41: Phoenix.Router.Route.call/2
        (phoenix 1.5.14) lib/phoenix/router.ex:352: Phoenix.Router.__call__/2

Type of the installation

Helm charts

Type of the JSON RPC archive node

PolygonEdge

Type of the chain

L1

Link to the page

No response

Steps to reproduce

No response

Backend version

v5.2.3

Frontend version

No response

Elixir & Erlang/OTP versions

1.14.5

Operating system

None

Additional information

No response

@vbaranov vbaranov added the bug 🐛 Something isn't working label Sep 27, 2023
@vbaranov vbaranov self-assigned this Sep 27, 2023
@vbaranov vbaranov mentioned this issue Sep 27, 2023
6 tasks
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.

1 participant