[GH-ISSUE #3261] Testing http challenge Uncaught SyntaxError: Unexpected end of JSON input #2202

Closed
opened 2026-02-26 07:34:29 +03:00 by kerem · 4 comments
Owner

Originally created by @jeberhardt87 on GitHub (Oct 16, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3261

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
When clicking on "Test Server reachability" in the SSL Certificates menu I get the following error:
"Communication with the API failed, is NPM running correctly?"
In the log I see the following:

10/16/2023] [11:50:13 AM] [SSL      ] › ℹ  info      Testing http challenge for cloud.mikropositronik.de
nginx-proxy-app-1  | Uncaught SyntaxError: Unexpected end of JSON input
nginx-proxy-app-1  | 
nginx-proxy-app-1  | FROM
nginx-proxy-app-1  | bash: line 1:   235 Trace/breakpoint trap   (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js
nginx-proxy-app-1  | ❯ Starting backend ...
nginx-proxy-app-1  | [10/16/2023] [11:50:16 AM] [Global   ] › ℹ  info      Using MySQL configuration
nginx-proxy-app-1  | [10/16/2023] [11:50:17 AM] [Global   ] › ✖  error     connect ECONNREFUSED 172.19.0.2:3306
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [Migrate  ] › ℹ  info      Current database version: 20211108145214
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [Setup    ] › ℹ  info      Logrotate Timer initialized
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [Setup    ] › ℹ  info      Logrotate completed.
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [SSL      ] › ℹ  info      Let's Encrypt Renewal Timer initialized
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ  info      IP Ranges Renewal Timer initialized
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [Global   ] › ℹ  info      Backend PID 290 listening on port 3000 ...
nginx-proxy-app-1  | [10/16/2023] [11:50:20 AM] [Nginx    ] › ℹ  info      Reloading Nginx
nginx-proxy-app-1  | [10/16/2023] [11:50:20 AM] [SSL      ] › ℹ  info      Renew Complete
nginx-proxy-app-1  | [10/16/2023] [11:50:21 AM] [SSL      ] › ✖  error     connect ECONNREFUSED 172.19.0.2:3306
nginx-proxy-app-1  | [10/16/2023] [11:50:21 AM] [SSL      ] › ✖  error     connect ECONNREFUSED 172.19.0.2:3306

Nginx Proxy Manager Version
v2.10.4

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'SSL Certificates'
  2. Click on 'Test Server Reachability'
  3. See error

Expected behavior
Server should be reachable

Operating System
docker compose on Ubuntu 23

Originally created by @jeberhardt87 on GitHub (Oct 16, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3261 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** When clicking on "Test Server reachability" in the SSL Certificates menu I get the following error: "Communication with the API failed, is NPM running correctly?" In the log I see the following: ``` 10/16/2023] [11:50:13 AM] [SSL ] › ℹ info Testing http challenge for cloud.mikropositronik.de nginx-proxy-app-1 | Uncaught SyntaxError: Unexpected end of JSON input nginx-proxy-app-1 | nginx-proxy-app-1 | FROM nginx-proxy-app-1 | bash: line 1: 235 Trace/breakpoint trap (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js nginx-proxy-app-1 | ❯ Starting backend ... nginx-proxy-app-1 | [10/16/2023] [11:50:16 AM] [Global ] › ℹ info Using MySQL configuration nginx-proxy-app-1 | [10/16/2023] [11:50:17 AM] [Global ] › ✖ error connect ECONNREFUSED 172.19.0.2:3306 nginx-proxy-app-1 | [10/16/2023] [11:50:18 AM] [Migrate ] › ℹ info Current database version: 20211108145214 nginx-proxy-app-1 | [10/16/2023] [11:50:18 AM] [Setup ] › ℹ info Logrotate Timer initialized nginx-proxy-app-1 | [10/16/2023] [11:50:18 AM] [Setup ] › ℹ info Logrotate completed. nginx-proxy-app-1 | [10/16/2023] [11:50:18 AM] [IP Ranges] › ℹ info Fetching IP Ranges from online services... nginx-proxy-app-1 | [10/16/2023] [11:50:18 AM] [IP Ranges] › ℹ info Fetching https://ip-ranges.amazonaws.com/ip-ranges.json nginx-proxy-app-1 | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ info Fetching https://www.cloudflare.com/ips-v4 nginx-proxy-app-1 | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ info Fetching https://www.cloudflare.com/ips-v6 nginx-proxy-app-1 | [10/16/2023] [11:50:19 AM] [SSL ] › ℹ info Let's Encrypt Renewal Timer initialized nginx-proxy-app-1 | [10/16/2023] [11:50:19 AM] [SSL ] › ℹ info Renewing SSL certs close to expiry... nginx-proxy-app-1 | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ info IP Ranges Renewal Timer initialized nginx-proxy-app-1 | [10/16/2023] [11:50:19 AM] [Global ] › ℹ info Backend PID 290 listening on port 3000 ... nginx-proxy-app-1 | [10/16/2023] [11:50:20 AM] [Nginx ] › ℹ info Reloading Nginx nginx-proxy-app-1 | [10/16/2023] [11:50:20 AM] [SSL ] › ℹ info Renew Complete nginx-proxy-app-1 | [10/16/2023] [11:50:21 AM] [SSL ] › ✖ error connect ECONNREFUSED 172.19.0.2:3306 nginx-proxy-app-1 | [10/16/2023] [11:50:21 AM] [SSL ] › ✖ error connect ECONNREFUSED 172.19.0.2:3306 ``` **Nginx Proxy Manager Version** v2.10.4 **To Reproduce** Steps to reproduce the behavior: 1. Go to 'SSL Certificates' 2. Click on 'Test Server Reachability' 4. See error **Expected behavior** Server should be reachable **Operating System** docker compose on Ubuntu 23
kerem 2026-02-26 07:34:29 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@tomasagray commented on GitHub (Oct 23, 2023):

Bump. Same issue here. Also running within a docker container, with similar log output, minus the SQL errors.

<!-- gh-comment-id:1774353948 --> @tomasagray commented on GitHub (Oct 23, 2023): Bump. Same issue here. Also running within a docker container, with similar log output, minus the SQL errors.
Author
Owner

@marmik18 commented on GitHub (Jan 12, 2024):

+1, same issue faced by me.

<!-- gh-comment-id:1889794311 --> @marmik18 commented on GitHub (Jan 12, 2024): +1, same issue faced by me.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 19, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:2237885355 --> @github-actions[bot] commented on GitHub (Jul 19, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Aug 9, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:3169661094 --> @github-actions[bot] commented on GitHub (Aug 9, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2202
No description provided.