Skip to content

OP Chain A and B rpc response for eth rpc queries is missing content type #389

@OscBacon

Description

@OscBacon

9545: op chain a
8547: op chain L1

❯ curl 'http://127.0.0.1:9545/' --verbose \
  -H 'Content-Type: application/json' \
  --data-raw '{"jsonrpc":"2.0","id":819,"method":"eth_getTransactionByHash","params":["0x303b2645c26214f8d68506e3cd9cbb6951a0a0a2218c5635215d2ea2d1df0573"]}'
*   Trying 127.0.0.1:9545...
* Connected to 127.0.0.1 (127.0.0.1) port 9545
* using HTTP/1.x
> POST / HTTP/1.1
> Host: 127.0.0.1:9545
> User-Agent: curl/8.11.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 142
>
* upload completely sent off: 142 bytes
< HTTP/1.1 200 OK
< Access-Control-Allow-Headers: Content-Type, Authorization
< Access-Control-Allow-Methods: GET, POST, OPTIONS
< Access-Control-Allow-Origin: *
< Content-Length: 40
< Date: Wed, 23 Apr 2025 16:08:56 GMT
<
* Connection #0 to host 127.0.0.1 left intact
{"jsonrpc":"2.0","id":819,"result":null}%
❯ curl 'http://127.0.0.1:8547/' --verbose \
  -H 'Content-Type: application/json' \
  --data-raw '{"jsonrpc":"2.0","id":819,"method":"eth_getTransactionByHash","params":["0x303b2645c26214f8d68506e3cd9cbb6951a0a0a2218c5635215d2ea2d1df0573"]}'
*   Trying 127.0.0.1:8547...
* Connected to 127.0.0.1 (127.0.0.1) port 8547
* using HTTP/1.x
> POST / HTTP/1.1
> Host: 127.0.0.1:8547
> User-Agent: curl/8.11.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 142
>
* upload completely sent off: 142 bytes
< HTTP/1.1 200 OK
< content-type: application/json
< vary: origin, access-control-request-method, access-control-request-headers
< access-control-allow-origin: *
< content-length: 40
< date: Wed, 23 Apr 2025 16:09:03 GMT
<
* Connection #0 to host 127.0.0.1 left intact
{"jsonrpc":"2.0","id":819,"result":null}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions