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
  Building specific Python version on Raspberry PI 5 (Raspbian) andrewk 2 715 Feb-03-2025, 11:41 AM
Last Post: iterate
  Error in Raspberry Pi 1Curiousindividual 1 630 Jan-01-2025, 12:31 AM
Last Post: Skaperen
  POST Syntax error amplay 0 657 Aug-07-2024, 02:43 PM
Last Post: amplay
  raspberry pi in a python script Raysz 5 1,484 Jun-08-2024, 07:04 PM
Last Post: jefsummers
  Video recording with Raspberry Pi - What´s wrong with my python code? Montezuma1502 3 2,407 Feb-24-2023, 06:14 PM
Last Post: deanhystad
  python requests library .JSON() error mHosseinDS86 6 7,367 Dec-19-2022, 08:28 PM
Last Post: deanhystad
  Error on basic Post API, FastAPI marlonbown 1 2,930 Nov-10-2022, 10:02 AM
Last Post: Larz60+
  where to host my python script tomtom 1 1,809 Feb-09-2022, 06:45 AM
Last Post: ndc85430
  Python requests oauth2 access token herobpv 6 7,062 Sep-27-2021, 06:54 PM
Last Post: herobpv
  Coding for Python and Raspberry pi beast 3 64,070 Sep-21-2021, 09:56 PM
Last Post: beast

Forum Jump:

User Panel Messages

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