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
I am using the rust-bitcoincore-rpc library in a project where I run a Bitcoin node behind a Traefik reverse proxy for testing purposes. I use the hostname bitcoin.localhost to access the Bitcoin node.
I'm facing an issue when I use this library to send requests to my Bitcoin node. Even though I've mapped bitcoin.localhost to localhost in my /etc/hosts file, it seems that the requests from this library are not being correctly routed to the Bitcoin node by Traefik.
Looking at Traefik's logs, it appears that the HTTP requests sent from this library don't have the Host header set to bitcoin.localhost, which is causing Traefik to not route the requests to the Bitcoin node.
I've tried to set the Host header manually in the library, but it seems that this functionality is not currently supported.
Having the ability to set custom headers in HTTP requests would be very useful in my case, and I think it would also be a good feature to have in the library in general.
Could you please consider adding this functionality, or suggest another workaround to handle my situation?
Thank you for your help and for maintaining this library.
The text was updated successfully, but these errors were encountered:
I think this properly belongs in rust-jsonrpc, which handles the HTTP transport -- this was recently updated to allow using minreq rather than our own homebrew HTTP server. I think that might cover your use case.
Hello,
I am using the rust-bitcoincore-rpc library in a project where I run a Bitcoin node behind a Traefik reverse proxy for testing purposes. I use the hostname bitcoin.localhost to access the Bitcoin node.
I'm facing an issue when I use this library to send requests to my Bitcoin node. Even though I've mapped bitcoin.localhost to localhost in my /etc/hosts file, it seems that the requests from this library are not being correctly routed to the Bitcoin node by Traefik.
Looking at Traefik's logs, it appears that the HTTP requests sent from this library don't have the Host header set to bitcoin.localhost, which is causing Traefik to not route the requests to the Bitcoin node.
I've tried to set the Host header manually in the library, but it seems that this functionality is not currently supported.
Having the ability to set custom headers in HTTP requests would be very useful in my case, and I think it would also be a good feature to have in the library in general.
Could you please consider adding this functionality, or suggest another workaround to handle my situation?
Thank you for your help and for maintaining this library.
The text was updated successfully, but these errors were encountered: