I am not able to issue a post on my Facebook page. I have done as instructed in the Project 15: Assignment Integromat | Bolt IoT. I created a ‘Facebook pages’ --> ‘Create a Post’ module in the scenario and a ‘Webhook’ scenario too. I ran the scenario and after that, I ran the python program for Z-score analysis, but unfortunately, I cannot issue a post on my Facebook page. For triggering the Integromat, I defined a function in python and I called this function inside a try block of the try-except structure. Whenever I run the program, the code under the except block executes if the light is below the lower threshold value, always.
The try-except block:
Facebook Page module:
This is the Python error I encountered:
HTTPSConnectionPool(host=‘hook.integromat.com’, port=443): Max retries exceeded with url: /7esqgb7ixzqmbv69pkfb20lldulv77lf (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x0000028E81D43130>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed’))
I can send requests through Postman (postman.com) and get the intended result on my Facebook page but when I send the same request through my python (requests.request(“GET”, URL)) it throws the error text I have pasted in the previous paragraph.