You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your work on the client.
I noticed strange behaviors while reading account data from arbitrary contracts, it seems that the solana official RPC is unhappy with httpx's injected content-length header.
Hi, thanks for your work on the client.
I noticed strange behaviors while reading account data from arbitrary contracts, it seems that the solana official RPC is unhappy with httpx's injected
content-length
header.The above code will generate this request on
httpx.AsyncClient
's side:Here is a curl equivalent for quick testing:
This breaks, Solana's RPC returning
curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
If the
Content-Length
header is removed or fixed (set to 261 in this example), the query is processed:Not sure if the header value not matching the actual content size is due to
solana-py
orhttpx
The text was updated successfully, but these errors were encountered: