Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,928
Community Members
 
Community Events
168
Community Groups

How I can insert SSL certificate and proxy params into get request for Trello Api ?

Hi everybody ! 

I having an issue. I can't pass through the proxy when I execute something like this : 

trello.lists.get_card(listId)

I develop my script in python to reach data from Trello API. 

I tryed to used "requests" and pass in param proxies values and certificate authority, but it's doesn't work. The error is : 

HTTPSConnectionPool(host='trello.com', port=443): Max retries exceeded with url: /1/lists/idboard/cards?key=""&token=""(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000000009D31B38>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')) 

And with requests I tryed something like this :

from trello import TrelloApi
import requests
trello = TrelloApi('key', 'token')
proxies = {
'http': 'http://id:password@ip-porxy:8080',
'https': 'http://id:password@ip-porxy:8080'
}
url = requests.get(trello.get_token_url('My App', expires='30days', write_access=True), proxies = proxies, verify = True, cert=['path/to/.cer'])

 

I am not sure I can do that with trello api and white listing the url is a possibility that I prefer avoid.

If someone can help me ! Really appreciate

Thank's a lot.

Regards, 

Juliette 

1 answer

1 accepted

0 votes
Answer accepted

Found solution, thanks ! 

Facing the same issue. How did you solve it? .

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events