FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12692 questions

15070 answers

24150 comments

47148 members

0 votes
196 views 1 comments
by

When I try to send an SMS using python 'requests' library I'm getting a timeout error

requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.1.1', port=80): Read timed out. (read timeout=60)

Similar when trying to use curl to send the request from CLI. When I'll use the same link in any browser It will work as it should.

Anyone had a problem like that or knows what I'm doing wrong?

1 Answer

0 votes
by
Issue resolved. My fault.

Router didn't have a route to server that was sending request. After adding it everything is working.
by
Hi moru35, i'm trying do the same, could you help me with the code ?