Python Forum
No route to host error when using requests.post in python on raspberry pi
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No route to host error when using requests.post in python on raspberry pi
#1
I am trying to send post request to URL from raspberry pi but I am getting Errno 113: No route to host error.
My code is:
Code: Select all

import requests
>>> r = requests.post("http://alnnovative.com/security.php", data="marium")
I created a stack trace log file which I have uploaded here: https://www.dropbox.com/s/xeomg3vrnxnmz0b/log.txt?dl=0
Can someone figure out the issue?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Video recording with Raspberry Pi - What´s wrong with my python code? Montezuma1502 3 1,265 Feb-24-2023, 06:14 PM
Last Post: deanhystad
  python requests library .JSON() error mHosseinDS86 6 3,448 Dec-19-2022, 08:28 PM
Last Post: deanhystad
  Error on basic Post API, FastAPI marlonbown 1 2,188 Nov-10-2022, 10:02 AM
Last Post: Larz60+
  where to host my python script tomtom 1 1,266 Feb-09-2022, 06:45 AM
Last Post: ndc85430
  Python requests oauth2 access token herobpv 6 3,935 Sep-27-2021, 06:54 PM
Last Post: herobpv
  Coding for Python and Raspberry pi beast 3 47,245 Sep-21-2021, 09:56 PM
Last Post: beast
  Failing to connect to a host with WMI tester_V 6 4,381 Aug-10-2021, 06:25 PM
Last Post: tester_V
  Logstash - sending Logstash messages to another host in case of Failover in python Suriya 0 1,678 Jul-27-2021, 02:02 PM
Last Post: Suriya
  python 3 raspberry pi 4 dual control motor programming problem yome 0 1,986 Mar-21-2021, 05:17 PM
Last Post: yome
  Python Requests SSL Aussie 0 2,000 Jan-07-2021, 02:09 AM
Last Post: Aussie

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020