Closed dikuchan closed 1 week ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
@dikuchan thanks for your issue, the team will take a look and get back to you as soon as possible.
Hi @dikuchan, from the snippets you listed above it looks like you are hitting an authentication error from the service. This seems independent of the connection, would you be able to confirm that you can set up a consumer and receive without using a proxy?
Hi @dikuchan. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
Hi @l0lawrence! You're right, the problem was with authentication. My bad. I accidentally changed the eventhub_name
when I tried to use the HTTP tunnel. When I changed it to the correct one, everything worked fine.
Sorry to bother you with such a stupid problem. I'm closing the issue now.
Not stupid at all, I'm glad you figured it out. thanks!
Is your feature request related to a problem? Please describe. I'm trying to set up an EventHub consumer that uses an HTTP proxy. Unfortunately, the proprietary proxy server I'm using doesn't support WebSocket protocol, and I suppose that
azure-eventhub
uses this protocol internally. However, this proxy server supports HTTP tunneling. But it seems thatazure-eventhub
doesn't support the latter.For testing, I tried to set up a simple HTTP tunnel using the
http-tunnel
project:Then I passed the address to the
EventHubConsumer
:When running the code above, I received the following error message:
I tried to use
uamqp
:And interestingly enough, the error has changed:
Describe the solution you'd like I'd like to use the HTTP tunnel seamlessly. For example, the
httpx
library allows you to use tunnels. This method has the same interface as a regular forward proxy: