Forums

Proxy error when using requests module

Hi,

I'm trying to make a request to hipchat's api but I keep getting Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden'). Is something blocking the request from going through? I saw another post in which you had to whitelist URLs for it to work. If so you, can you please whitelist

https://*.hipchat.com/

Is the endpoint just www.hipchat.com? Or do you need access to other subdomains? Can you show us the relevant documentation for this? Thanks.

The endpoint is actually somewhat like this

https://orgname.hipchat.com/v2/room/room_no/notification?auth_token=AUTH_TOKEN

Where orgname = organization name, room_no = a room number, and AUTH_TOKEN = api auth token

These are the links to the docs:

https://developer.atlassian.com/hipchat/guide/hipchat-rest-api

https://www.hipchat.com/docs/apiv2/method/send_room_notification

Do you have a link to the docs where they say that it's orgname.hipchat.com? The documentation seems to be needlessly obscure on the subject of the hostname -- lots of stuff saying "POST a request that looks like this", not much saying where you should post it to!

Unfortunately I don't have a link to something like that. But when you create an account on hipchat with an organization you access it with orgname.hipchat.com, so I guess if you put a wildcard *.hipchat.com it should work for me.

Or if you can add api.hipchat.com then I can try to see if I can send the message that way.

I will add www. and api. based on this.

Thank you, it works now.

Great! Thanks for confirming.