Describe the bug (observed vs expected behavior)
devnet endpoint /create_block requires a user to provide body and header parameters on post-request.
This differs from the rc.1 version, which didn't require any POST setup.
As documentation does not mention this setup it would be expected that /create_block works without a header and empty body
Not reproducible on testnet
[x] This issue is only present on Devnet and cannot be reproduced on the alpha-sepolia testnet (check the box if true).
To Reproduce
WORKING EXAMPLE:
curl -d '{}' -H "Content-Type: application/json" -X POST http://localhost:5050/create_block
{"block_hash":"0x21110b83d16f66132199ceb27fb43785763737c566e81d657c80824ce0be17a"}%
NO BODY:
curl -H "Content-Type: application/json" -X POST http://localhost:5050/create_block
Failed to parse the request body as JSON: EOF while parsing a value at line 1 column 0%
NO HEADER:
curl -X POST http://localhost:5050/create_block
Expected request with Content-Type: application/json% (edited)
Devnet version
I am using Devnet version: shardlabs/starknet-devnet-rs:0.2.0-rc.2
[x] This happens with a dockerized Devnet (check the box if true).
This does not appear on the following Devnet version: shardlabs/starknet-devnet-rs:0.2.0-rc.1
Describe the bug (observed vs expected behavior) devnet endpoint
/create_block
requires a user to provide body and header parameters on post-request. This differs from the rc.1 version, which didn't require any POST setup.As documentation does not mention this setup it would be expected that
/create_block
works without a header and empty bodyNot reproducible on testnet
To Reproduce
WORKING EXAMPLE:
curl -d '{}' -H "Content-Type: application/json" -X POST http://localhost:5050/create_block
{"block_hash":"0x21110b83d16f66132199ceb27fb43785763737c566e81d657c80824ce0be17a"}%NO BODY:
curl -H "Content-Type: application/json" -X POST http://localhost:5050/create_block
Failed to parse the request body as JSON: EOF while parsing a value at line 1 column 0%NO HEADER:
curl -X POST http://localhost:5050/create_block
Expected request withContent-Type: application/json
% (edited) Devnet version