Maximum retries exceeded with token not able to establish connection error

Max retries exceeded with url: /v5.0112484523614558/photos?access_token=EAAI1s6cT6EIBAN3YUhlbzndmYu4oaxM

Hi @vinayak, is your issue resolved?

no, not yet it still displays the same error

would i need a new token to do it

tell me how to resolve it @Shashank_Crio_TA

Please don’t hardcode the tokens and update the tokens in access_tokens.sh file

@Shashank_Crio_TA yes I’ve updated them in the tokens.sh however the same error gets popped up

Please don’t hardcode token values while making request. You can look into TODO of facebook_post.py on how to use the token values without hard coding.

Yes I’m accessing them using self.page id and self.page acess.tokens @Shashank_Crio_TA

Please check whether you are sending the message also?

yes I’m sending the message too

this is the error im getting —
r = adapter.send(request, **kwargs)
File “/home/crio-user/.local/lib/python3.6/site-packages/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘www.graph.facebook.com’, port=443): Max retries exceeded with url: /v5.0/106935460840737/photos?access_token=EAAKAuzVo6KcBAIuWb5hP1D4JMD0u8rrTsRCRF5zaQDUm5CH475K4CLKLRaHKV9puI14FXdC9o4i4xp4zuZBJZCqNTcjnMKnNXzaPdBetMPQGqNCrfzQilrDhuq8naw5cO0kShBf7G9QqRuLYLf3yiTgZAz2ZBGWTDYg9vZC6QLgZDZD (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7fbd774bb3c8>: Failed to establish a new connection: [Errno -2] Name or service not known’,))

@vinayak a new set of hints has been given to solve this module in announcements channel of slack group. Please refer

https://crio-lmp250120-01.slack.com/archives/CSKJ7L73L/p1580023427078600