Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Juliette VERLAINE January 15, 2019

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
Juliette VERLAINE January 15, 2019

Found solution, thanks ! 

Kumar January 3, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events