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
  Python automation: Sending clicks/keys to VMware virtual machine from host olips784 0 215 May-18-2025, 06:28 PM
Last Post: olips784
  Building specific Python version on Raspberry PI 5 (Raspbian) andrewk 2 842 Feb-03-2025, 11:41 AM
Last Post: iterate
  Error in Raspberry Pi 1Curiousindividual 1 721 Jan-01-2025, 12:31 AM
Last Post: Skaperen
  POST Syntax error amplay 0 714 Aug-07-2024, 02:43 PM
Last Post: amplay
  raspberry pi in a python script Raysz 5 1,626 Jun-08-2024, 07:04 PM
Last Post: jefsummers
  Video recording with Raspberry Pi - What´s wrong with my python code? Montezuma1502 3 2,535 Feb-24-2023, 06:14 PM
Last Post: deanhystad
  python requests library .JSON() error mHosseinDS86 6 7,835 Dec-19-2022, 08:28 PM
Last Post: deanhystad
  Error on basic Post API, FastAPI marlonbown 1 3,006 Nov-10-2022, 10:02 AM
Last Post: Larz60+
  where to host my python script tomtom 1 1,885 Feb-09-2022, 06:45 AM
Last Post: ndc85430
  Python requests oauth2 access token herobpv 6 7,495 Sep-27-2021, 06:54 PM
Last Post: herobpv

Forum Jump:

User Panel Messages

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