• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

influx apply …. http: no Host in request URL

Q&A Forum › Category: Raspberry Pi › influx apply …. http: no Host in request URL
0 Vote Up Vote Down
mal_rixon asked 6 months ago

Working through smart home with raspberry pi esp32 and esp8266 and from page 234 have crafted the following comands 

pi@raspberrypi:~ $ influx config create –config-name influx-config –host-url http:192.168.1.145:8086 –org homr –token q1yQa5uaBLvEadxICgaxqjXcj6zirIsK2tR7dbGZHhOaigK_EsBwQ9fQx0riwUXCFX0jDW5VnOWuHkGU9Xi14g== –active
gave thisresponse

Active Name URL Org
* influx-config http:192.168.1.145:8086 homr
then ran the following

pi@raspberrypi:~ $ influx apply -f https://raw.githubusercontent.com/influxdata/community-templates/master/raspberry-pi/raspberry-pi-system.yml
and this was the reply

2022/10/08 20:35:33 WARN: Passing URLs via -f/–file is deprecated, please use -u/–template-url instead
Error: failed to lookup org with name “homr”: Get “http:///api/v2/orgs?org=homr”: http: no Host in request URL
pi@raspberrypi:~ $

2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Hi.
The first message is just a warning. The command should work with -f or -u command.
The error that prevents from continuing is that it can’t find any organzation with the name “homr”, you probably mean “home”?  Please double-check your informationn on the command your typing.
 
Regards,
Sara

0 Vote Up Vote Down
mal_rixon answered 5 months ago

.  Did a reinstall and all good now mark as resolved

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.