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
The web3signer doesn't set the applicable Accept header to indicate that application/json is an acceptable response.
the web3signer api indicates that both application/json and text/plain are acceptable response types for signing requests.
The web3signer handler in lighthouse requires a json response. Setting the header "Accept: application/json" indicates to the web3signer that json is an acceptable response.
The default header uses Accept: */* which means any response is acceptable.
Version
stable (v5.1.3)
Present Behaviour
Fail to deserialize response as json if the respnse return type is plain/text.
Expected Behaviour
Properly deserialize the json response
Steps to resolve
Set the correct header for the request.
The text was updated successfully, but these errors were encountered:
Description
The web3signer doesn't set the applicable
Accept
header to indicate thatapplication/json
is an acceptable response.the web3signer api indicates that both
application/json
andtext/plain
are acceptable response types for signing requests.The web3signer handler in lighthouse requires a json response. Setting the header "Accept: application/json" indicates to the web3signer that json is an acceptable response.
The default header uses
Accept: */*
which means any response is acceptable.Version
stable (v5.1.3)
Present Behaviour
Fail to deserialize response as json if the respnse return type is
plain/text
.Expected Behaviour
Properly deserialize the json response
Steps to resolve
Set the correct header for the request.
The text was updated successfully, but these errors were encountered: