Closed SaigyoujiYuyuko233 closed 1 year ago
When I upload a 2MB+ json file for sc verification, there is an error JSON payload (4152195 bytes) is larger than allowed (limit: 2097152 bytes).
JSON payload (4152195 bytes) is larger than allowed (limit: 2097152 bytes).
With backend log:
smart-contract-verifier | 2022-12-22T05:32:47.117254Z WARN HTTP request{http.method=POST http.route=/api/v1/solidity/verify/standard-json http.flavor=1.1 http.scheme=http http.host=host.docker.internal:8043 http.client_ip=172.19.0.1 http.user_agent=hackney/1.18.1 http.target=/api/v1/solidity/verify/standard-json otel.name=HTTP POST /api/v1/solidity/verify/standard-json otel.kind="server" request_id=c69c1e33-ae5e-4870-8ffd-15ce3cdacd47 exception.message=JSON payload (4152211 bytes) is larger than allowed (limit: 2097152 bytes). exception.details=OverflowKnownLength { length: 4152211, limit: 2097152 } http.status_code=413 otel.status_code="OK"}: tracing_actix_web::middleware: Error encountered while processing the incoming HTTP request: OverflowKnownLength { length: 4152211, limit: 2097152 }
elixir -version
Erlang/OTP 24 [erts-12.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:no-native-stack] Elixir 1.13.1 (compiled with Erlang/OTP 24)
node -v
via Standard Input Json
The smart contract will be verified.
Is there any way to set this limit via env variable?
Any help willbe appreciated!
Fixed in https://github.com/blockscout/blockscout-rs/pull/332. Now the maximum payload size may be specified via configuration variables. Adapted in smart-contract-verifier-v1.0.0 release
When I upload a 2MB+ json file for sc verification, there is an error
JSON payload (4152195 bytes) is larger than allowed (limit: 2097152 bytes).
With backend log:
Environment
elixir -version
):node -v
): v16.13.1Steps to reproduce
via Standard Input Json
Expected behaviour
The smart contract will be verified.
Actual behaviour
Is there any way to set this limit via env variable?
Any help willbe appreciated!