Skip to content

Need to pass query params to endpoint using ProxyGetRequest #1485

Answered by niklasad1
fabrobles92 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @fabrobles92

It doesn't work because https://github.com/paritytech/jsonrpsee/blob/master/server/src/middleware/http/proxy_get_request.rs#L135 requires the path exactly match and it doesn't extract the query params from the URL and passes it on to the rpc call.

Thus, either open a PR to add support for that in ProxyGetRequest or just write your own middleware for that (you can use https://github.com/paritytech/jsonrpsee/blob/master/server/src/middleware/http/proxy_get_request.rs as template) for that

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fabrobles92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants