ERROR unexpected end of JSON input {"node_id": 0} #26

Closed
opened 2025-11-20 04:18:59 -05:00 by saavagebueno · 7 comments
Owner

Originally created by @willholdoway on GitHub (Apr 8, 2020).

I'm getting the error: unexpected end of JSON input {"node_id": 0}

When trying to use dens-updater for the first time via this entry in the docker compose file:

  ddns-updater:
    image: qmcgaw/ddns-updater
    container_name: ddns-updater
    networks:
      - default
    ports:
      - 8000:8000/tcp
    volumes:
      - $USERDIR/docker/ddns-updater/data:/updater/data
    environment:
      - DELAY=300s
      - ROOT_URL=/
      - LISTENING_PORT=8000
      - LOG_ENCODING=console
      - LOG_LEVEL=info
      - NODE_ID=0
      - HTTP_TIMEOUT=10s
      - GOTIFY_URL=
      - GOTIFY_TOKEN=
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
    restart: always
Originally created by @willholdoway on GitHub (Apr 8, 2020). I'm getting the error: unexpected end of JSON input {"node_id": 0} When trying to use dens-updater for the first time via this entry in the docker compose file: ```yml ddns-updater: image: qmcgaw/ddns-updater container_name: ddns-updater networks: - default ports: - 8000:8000/tcp volumes: - $USERDIR/docker/ddns-updater/data:/updater/data environment: - DELAY=300s - ROOT_URL=/ - LISTENING_PORT=8000 - LOG_ENCODING=console - LOG_LEVEL=info - NODE_ID=0 - HTTP_TIMEOUT=10s - GOTIFY_URL= - GOTIFY_TOKEN= - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} restart: always ```
Author
Owner

@github-actions[bot] commented on GitHub (Apr 8, 2020):

Thanks for creating your first issue 👍 Feel free to use Slack if you just need some quick help or want to chat

@github-actions[bot] commented on GitHub (Apr 8, 2020): Thanks for creating your first issue :+1: Feel free to use [Slack](https://join.slack.com/t/qdm12/shared_invite/enQtODMwMDQyMTAxMjY1LTU1YjE1MTVhNTBmNTViNzJiZmQwZWRmMDhhZjEyNjVhZGM4YmIxOTMxOTYzN2U0N2U2YjQ2MDk3YmYxN2NiNTc) if you just need some quick help or want to chat
Author
Owner

@qdm12 commented on GitHub (Apr 9, 2020):

That's most likely because your JSON file is not well formatted. You can check with https://jsonlint.com/

@qdm12 commented on GitHub (Apr 9, 2020): That's most likely because your JSON file is not well formatted. You can check with https://jsonlint.com/
Author
Owner

@willholdoway commented on GitHub (Apr 9, 2020):

No, this is my JSON below and it is valid:

{
	"settings": [{
			"provider": "cloudflare",
			"domain": "xxx.x",
			"ip_method": "opendns",
			"zone_identifier": "xxxxx",
			"identifier": "xxxxx",
			"host": "x",
			"ttl": 1,
			"token": "xxxxx"
		},
		{
			"provider": "cloudflare",
			"domain": "xxx.x",
			"ip_method": "opendns",
			"zone_identifier": "xxxxx",
			"identifier": "xxxxx",
			"host": "x",
			"ttl": 1,
			"token": "xxxxx"
		}
	]
}
@willholdoway commented on GitHub (Apr 9, 2020): No, this is my JSON below and it is valid: ``` { "settings": [{ "provider": "cloudflare", "domain": "xxx.x", "ip_method": "opendns", "zone_identifier": "xxxxx", "identifier": "xxxxx", "host": "x", "ttl": 1, "token": "xxxxx" }, { "provider": "cloudflare", "domain": "xxx.x", "ip_method": "opendns", "zone_identifier": "xxxxx", "identifier": "xxxxx", "host": "x", "ttl": 1, "token": "xxxxx" } ] } ```
Author
Owner

@qdm12 commented on GitHub (Apr 9, 2020):

Maybe you have \r characters (windows end of lines literals) in the file?

@qdm12 commented on GitHub (Apr 9, 2020): Maybe you have `\r` characters (windows end of lines literals) in the file?
Author
Owner

@willholdoway commented on GitHub (Apr 9, 2020):

In config.json ? I don't think so

@willholdoway commented on GitHub (Apr 9, 2020): In config.json ? I don't think so
Author
Owner

@qdm12 commented on GitHub (Apr 10, 2020):

I'm quite certain it's a problem with the syntax of the file or something not visible like line endings.

Try with

{}

in your file to see if you get the same error. You should get a no settings found error instead.

@qdm12 commented on GitHub (Apr 10, 2020): I'm quite certain it's a problem with the syntax of the file or something not visible like line endings. Try with ```json {} ``` in your file to see if you get the same error. You should get a `no settings found` error instead.
Author
Owner

@qdm12 commented on GitHub (May 30, 2020):

Have you solved it now? If not, I'll make an alpine based image so you can try debugging it from inside the container.

@qdm12 commented on GitHub (May 30, 2020): Have you solved it now? If not, I'll make an alpine based image so you can try debugging it from inside the container.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#26