Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. [gelöst] oilFox - Unexpected token < in JSON at position 0

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    16
    1
    244

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.5k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

[gelöst] oilFox - Unexpected token < in JSON at position 0

Geplant Angeheftet Gesperrt Verschoben Error/Bug
4 Beiträge 2 Kommentatoren 766 Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • N Offline
    N Offline
    NicoB
    schrieb am zuletzt editiert von NicoB
    #1

    Hallo zusammen

    Ich erhalte die ganze Zeit bei jeder Abfrage von oilFox diese Meldungen im Log.
    OilFox habe ich schon mehrfach neu installiert. Nur leider weiß ich nicht mehr weiter was ich noch dagegen tun kann.

    Hat jemand das gleiche Problem, bzw. kennt eine Lösung

    Schöne Grüße,
    Nico

    Systemdata Bitte Ausfüllen
    Hardwaresystem: Raspberry Pi 3 Model B Plus Rev 1.3
    Arbeitsspeicher: 1GB
    Festplattenart: SD-Karte
    Betriebssystem: ioBroker Image
    Node-Version: 4.0.23
    Nodejs-Version: 16.17.0
    NPM-Version: 8.15.0
    Installationsart: Image von der Webseite
    Image genutzt: Ja
    Ort/Name der Imagedatei: -
    oilfox.0
    	2022-08-21 17:46:12.393	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
    oilfox.0
    	2022-08-21 17:46:12.389	info	terminating
    oilfox.0
    	2022-08-21 17:46:11.862	error	Unexpected token < in JSON at position 0
    oilfox.0
    	2022-08-21 17:46:11.860	error	SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.oilfox/main.js:85:31) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)
    oilfox.0
    	2022-08-21 17:46:11.854	error	unhandled promise rejection: Unexpected token < in JSON at position 0
    oilfox.0
    	2022-08-21 17:46:11.850	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
    oilfox.0
    	2022-08-21 17:46:11.125	info	starting. Version 4.1.2 (non-npm: iobroker-community-adapters/ioBroker.oilfox) in /opt/iobroker/node_modules/iobroker.oilfox, node: v16.17.0, js-controller: 4.0.23
    oilfox.0
    	2022-08-21 17:46:10.649	info	Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
    
    BananaJoeB 1 Antwort Letzte Antwort
    0
    • N NicoB

      Hallo zusammen

      Ich erhalte die ganze Zeit bei jeder Abfrage von oilFox diese Meldungen im Log.
      OilFox habe ich schon mehrfach neu installiert. Nur leider weiß ich nicht mehr weiter was ich noch dagegen tun kann.

      Hat jemand das gleiche Problem, bzw. kennt eine Lösung

      Schöne Grüße,
      Nico

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Raspberry Pi 3 Model B Plus Rev 1.3
      Arbeitsspeicher: 1GB
      Festplattenart: SD-Karte
      Betriebssystem: ioBroker Image
      Node-Version: 4.0.23
      Nodejs-Version: 16.17.0
      NPM-Version: 8.15.0
      Installationsart: Image von der Webseite
      Image genutzt: Ja
      Ort/Name der Imagedatei: -
      oilfox.0
      	2022-08-21 17:46:12.393	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
      oilfox.0
      	2022-08-21 17:46:12.389	info	terminating
      oilfox.0
      	2022-08-21 17:46:11.862	error	Unexpected token < in JSON at position 0
      oilfox.0
      	2022-08-21 17:46:11.860	error	SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.oilfox/main.js:85:31) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)
      oilfox.0
      	2022-08-21 17:46:11.854	error	unhandled promise rejection: Unexpected token < in JSON at position 0
      oilfox.0
      	2022-08-21 17:46:11.850	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
      oilfox.0
      	2022-08-21 17:46:11.125	info	starting. Version 4.1.2 (non-npm: iobroker-community-adapters/ioBroker.oilfox) in /opt/iobroker/node_modules/iobroker.oilfox, node: v16.17.0, js-controller: 4.0.23
      oilfox.0
      	2022-08-21 17:46:10.649	info	Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
      
      BananaJoeB Offline
      BananaJoeB Offline
      BananaJoe
      Most Active
      schrieb am zuletzt editiert von BananaJoe
      #2

      @nicob da ich die Fehlermeldung neulich beim Programmieren auch hatte: Vermutlich kommt schlich ein leerer String zurück, also nichts. Im Programm wird versucht das JSON auszuwerten was - weil leer - dann schon an Position 0 scheitert.

      Da geht also vorher schon was schief. Schalte den Adapter doch mal um auf Debug und probiere es noch mal, dann die komplette Ausgabe des Logs von oilfox hier posten, inklusive Start des Adapters

      Und hinterher wieder von Debug zurück auf den vorherigen Wert stellen

      Nachtrag:
      https://github.com/iobroker-community-adapters/ioBroker.oilfox/issues/61
      Aber keine Lösung. Welche Version ist denn der Adapter? Da wurde was an der API geändert, ergo muss der mindestens 4.1.1 sein

      ioBroker@Ubuntu 24.04 LTS (VMware) für: >260 Geräte, 5 Switche, 7 AP, 10 IP-Cam, 1 NAS 42TB, 1 ESXi 15TB, 4 Proxmox 1TB, 1 Hyper-V 48TB, 14 x Echo, 5x FireTV, 5 x Tablett/Handy VIS || >=160 Tasmota/Shelly || >=95 ZigBee || PV 8.1kW / Akku 14kWh || 2x USV APC 750W kaskadiert || Creality CR-10 SE 3D-Drucker

      N 1 Antwort Letzte Antwort
      1
      • BananaJoeB BananaJoe

        @nicob da ich die Fehlermeldung neulich beim Programmieren auch hatte: Vermutlich kommt schlich ein leerer String zurück, also nichts. Im Programm wird versucht das JSON auszuwerten was - weil leer - dann schon an Position 0 scheitert.

        Da geht also vorher schon was schief. Schalte den Adapter doch mal um auf Debug und probiere es noch mal, dann die komplette Ausgabe des Logs von oilfox hier posten, inklusive Start des Adapters

        Und hinterher wieder von Debug zurück auf den vorherigen Wert stellen

        Nachtrag:
        https://github.com/iobroker-community-adapters/ioBroker.oilfox/issues/61
        Aber keine Lösung. Welche Version ist denn der Adapter? Da wurde was an der API geändert, ergo muss der mindestens 4.1.1 sein

        N Offline
        N Offline
        NicoB
        schrieb am zuletzt editiert von NicoB
        #3

        EDIT:

        Tja das ist mir jetzt etwas peinlich, das der Account bei OilFox nicht mehr vorhanden war, war nun das Problem.

        @bananajoe Da wäre das Log mit Debug aktiv, scheint wohl ein defekt im Adapter zu sein. Adapter Version ist 4.1.2

        oilfox.0
        	2022-08-21 18:03:08.126	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
        oilfox.0
        	2022-08-21 18:03:08.124	debug	Plugin sentry destroyed
        oilfox.0
        	2022-08-21 18:03:08.120	info	terminating
        oilfox.0
        	2022-08-21 18:03:07.584	error	Unexpected token < in JSON at position 0
        oilfox.0
        	2022-08-21 18:03:07.582	error	SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.oilfox/main.js:85:31) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)
        oilfox.0
        	2022-08-21 18:03:07.578	error	unhandled promise rejection: Unexpected token < in JSON at position 0
        oilfox.0
        	2022-08-21 18:03:07.575	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
        oilfox.0
        	2022-08-21 18:03:07.568	debug	received data 2: <!doctype html><html lang="en"><head><title>HTTP Status 401 – Unauthorized</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 – Unauthorized</h1></body></html>
        oilfox.0
        	2022-08-21 18:03:07.561	debug	received chunk2: <!doctype html><html lang="en"><head><title>HTTP Status 401 – Unauthorized</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 – Unauthorized</h1></body></html>
        oilfox.0
        	2022-08-21 18:03:07.430	debug	received data: {"statusCode":429,"errorCode":"GENERIC__TOO_MANY_REQUESTS"}
        oilfox.0
        	2022-08-21 18:03:07.424	debug	received chunk: {"statusCode":429,"errorCode":"GENERIC__TOO_MANY_REQUESTS"}
        oilfox.0
        	2022-08-21 18:03:07.247	debug	send data: {"email":"XXX","password":"XXX"}
        oilfox.0
        	2022-08-21 18:03:07.103	debug	adapter.main: << MAIN >>
        oilfox.0
        	2022-08-21 18:03:07.101	debug	adapter.on-ready: << READY >>
        oilfox.0
        	2022-08-21 18:03:07.026	info	starting. Version 4.1.2 (non-npm: iobroker-community-adapters/ioBroker.oilfox) in /opt/iobroker/node_modules/iobroker.oilfox, node: v16.17.0, js-controller: 4.0.23
        oilfox.0
        	2022-08-21 18:03:06.568	info	Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
        oilfox.0
        	2022-08-21 18:03:06.545	debug	Plugin sentry Initialize Plugin (enabled=true)
        
        BananaJoeB 1 Antwort Letzte Antwort
        0
        • N NicoB

          EDIT:

          Tja das ist mir jetzt etwas peinlich, das der Account bei OilFox nicht mehr vorhanden war, war nun das Problem.

          @bananajoe Da wäre das Log mit Debug aktiv, scheint wohl ein defekt im Adapter zu sein. Adapter Version ist 4.1.2

          oilfox.0
          	2022-08-21 18:03:08.126	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
          oilfox.0
          	2022-08-21 18:03:08.124	debug	Plugin sentry destroyed
          oilfox.0
          	2022-08-21 18:03:08.120	info	terminating
          oilfox.0
          	2022-08-21 18:03:07.584	error	Unexpected token < in JSON at position 0
          oilfox.0
          	2022-08-21 18:03:07.582	error	SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.oilfox/main.js:85:31) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)
          oilfox.0
          	2022-08-21 18:03:07.578	error	unhandled promise rejection: Unexpected token < in JSON at position 0
          oilfox.0
          	2022-08-21 18:03:07.575	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
          oilfox.0
          	2022-08-21 18:03:07.568	debug	received data 2: <!doctype html><html lang="en"><head><title>HTTP Status 401 – Unauthorized</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 – Unauthorized</h1></body></html>
          oilfox.0
          	2022-08-21 18:03:07.561	debug	received chunk2: <!doctype html><html lang="en"><head><title>HTTP Status 401 – Unauthorized</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 – Unauthorized</h1></body></html>
          oilfox.0
          	2022-08-21 18:03:07.430	debug	received data: {"statusCode":429,"errorCode":"GENERIC__TOO_MANY_REQUESTS"}
          oilfox.0
          	2022-08-21 18:03:07.424	debug	received chunk: {"statusCode":429,"errorCode":"GENERIC__TOO_MANY_REQUESTS"}
          oilfox.0
          	2022-08-21 18:03:07.247	debug	send data: {"email":"XXX","password":"XXX"}
          oilfox.0
          	2022-08-21 18:03:07.103	debug	adapter.main: << MAIN >>
          oilfox.0
          	2022-08-21 18:03:07.101	debug	adapter.on-ready: << READY >>
          oilfox.0
          	2022-08-21 18:03:07.026	info	starting. Version 4.1.2 (non-npm: iobroker-community-adapters/ioBroker.oilfox) in /opt/iobroker/node_modules/iobroker.oilfox, node: v16.17.0, js-controller: 4.0.23
          oilfox.0
          	2022-08-21 18:03:06.568	info	Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
          oilfox.0
          	2022-08-21 18:03:06.545	debug	Plugin sentry Initialize Plugin (enabled=true)
          
          BananaJoeB Offline
          BananaJoeB Offline
          BananaJoe
          Most Active
          schrieb am zuletzt editiert von
          #4

          @nicob Öhm, also Problem gelöst? Weil kein Account / Falsche Zugangsdaten? So steht es ja auch in deinen Debug Meldungen. Dann setze den ersten Post auch auf ein [gelöst] ... vor dem Betreff

          ioBroker@Ubuntu 24.04 LTS (VMware) für: >260 Geräte, 5 Switche, 7 AP, 10 IP-Cam, 1 NAS 42TB, 1 ESXi 15TB, 4 Proxmox 1TB, 1 Hyper-V 48TB, 14 x Echo, 5x FireTV, 5 x Tablett/Handy VIS || >=160 Tasmota/Shelly || >=95 ZigBee || PV 8.1kW / Akku 14kWh || 2x USV APC 750W kaskadiert || Creality CR-10 SE 3D-Drucker

          1 Antwort Letzte Antwort
          0
          Antworten
          • In einem neuen Thema antworten
          Anmelden zum Antworten
          • Älteste zuerst
          • Neuste zuerst
          • Meiste Stimmen


          Support us

          ioBroker
          Community Adapters
          Donate

          585

          Online

          32.7k

          Benutzer

          82.5k

          Themen

          1.3m

          Beiträge
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Anmelden

          • Du hast noch kein Konto? Registrieren

          • Anmelden oder registrieren, um zu suchen
          • Erster Beitrag
            Letzter Beitrag
          0
          • Home
          • Aktuell
          • Tags
          • Ungelesen 0
          • Kategorien
          • Unreplied
          • Beliebt
          • GitHub
          • Docu
          • Hilfe