[GH-ISSUE #2914] Getting domain_names.map is not a function error in HOSTS #1996

Closed
opened 2026-02-26 07:33:37 +03:00 by kerem · 6 comments
Owner

Originally created by @mora-phi on GitHub (May 12, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2914

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
Almost everything is in the title ^^
When I enter the Hosts > Proxy Hosts menu, none of the 20 or so Hosts I have configured appear, and I see the following error :
image

domain_names.map is not a function

In Chrome's console, the following can be seen :

TypeError: domain_names.map is not a function
    at module.exports (7.bundle.7.js?v=2.10.3:1:6179)
    at i.render (main.bundle.js?v=2.10.3:310:15407)
    at i._renderHtml (main.bundle.js?v=2.10.3:303:68288)
    at i._renderTemplate (main.bundle.js?v=2.10.3:27:115832)
    at i.render (main.bundle.js?v=2.10.3:27:131271)
    at ae (main.bundle.js?v=2.10.3:27:122435)
    at main.bundle.js?v=2.10.3:27:140662
    at Function.Dt (main.bundle.js?v=2.10.3:3:28769)
    at i._getBuffer (main.bundle.js?v=2.10.3:27:140642)
    at i._renderChildren (main.bundle.js?v=2.10.3:27:140463)

Nginx Proxy Manager Version
2.10.3

To Reproduce
Steps to reproduce the behavior:

  1. Go to Hosts > Proxy Hosts
  2. See error

Expected behavior
See the list of Proxy Hosts

Screenshots
Already provided screenshot with the description.

Operating System
Docker on Alpine Linux.

Additional context
I just updated to the latest version, it was working fine before.
But I don't know on which version I was before...

Originally created by @mora-phi on GitHub (May 12, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2914 **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** Almost everything is in the title ^^ When I enter the Hosts > Proxy Hosts menu, none of the 20 or so Hosts I have configured appear, and I see the following error : ![image](https://github.com/NginxProxyManager/nginx-proxy-manager/assets/8950440/11698c51-7be1-4b1d-a4df-37c966192c57) domain_names.map is not a function In Chrome's console, the following can be seen : ``` TypeError: domain_names.map is not a function at module.exports (7.bundle.7.js?v=2.10.3:1:6179) at i.render (main.bundle.js?v=2.10.3:310:15407) at i._renderHtml (main.bundle.js?v=2.10.3:303:68288) at i._renderTemplate (main.bundle.js?v=2.10.3:27:115832) at i.render (main.bundle.js?v=2.10.3:27:131271) at ae (main.bundle.js?v=2.10.3:27:122435) at main.bundle.js?v=2.10.3:27:140662 at Function.Dt (main.bundle.js?v=2.10.3:3:28769) at i._getBuffer (main.bundle.js?v=2.10.3:27:140642) at i._renderChildren (main.bundle.js?v=2.10.3:27:140463) ``` **Nginx Proxy Manager Version** 2.10.3 **To Reproduce** Steps to reproduce the behavior: 1. Go to Hosts > Proxy Hosts 4. See error **Expected behavior** See the list of Proxy Hosts **Screenshots** Already provided screenshot with the description. **Operating System** Docker on Alpine Linux. **Additional context** I just updated to the latest version, it was working fine before. But I don't know on which version I was before...
kerem 2026-02-26 07:33:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@mora-phi commented on GitHub (Sep 14, 2023):

Hi,
Now on 2.10.4 and still seeing the same error.
Any pointers ?

<!-- gh-comment-id:1719645741 --> @mora-phi commented on GitHub (Sep 14, 2023): Hi, Now on 2.10.4 and still seeing the same error. Any pointers ?
Author
Owner

@milkpirate commented on GitHub (Dec 26, 2023):

I try to provision my nginxproxymanager via writing to the sqlite DB. I get the same message when I insert the certificate entry. How did you (@pmorange) solve the problem?

<!-- gh-comment-id:1869649968 --> @milkpirate commented on GitHub (Dec 26, 2023): I try to provision my `nginxproxymanager` via writing to the sqlite DB. I get the same message when I insert the certificate entry. How did you (@pmorange) solve the problem?
Author
Owner

@mora-phi commented on GitHub (Dec 28, 2023):

I try to provision my nginxproxymanager via writing to the sqlite DB. I get the same message when I insert the certificate entry. How did you (@pmorange) solve the problem?

Hi,
I was able to solve that by checking in debug mode the json I receive on the webpage. You can do that for instance in Brave and Chrome by opening the developer mode.
My problem was that in the name or description (can't remember which one exactly), I had badly closed " . You can check all the names you have and see if any one of them has a missing quote.

Hoe that helps.

<!-- gh-comment-id:1870947009 --> @mora-phi commented on GitHub (Dec 28, 2023): > I try to provision my `nginxproxymanager` via writing to the sqlite DB. I get the same message when I insert the certificate entry. How did you (@pmorange) solve the problem? Hi, I was able to solve that by checking in debug mode the json I receive on the webpage. You can do that for instance in Brave and Chrome by opening the developer mode. My problem was that in the name or description (can't remember which one exactly), I had badly closed " . You can check all the names you have and see if any one of them has a missing quote. Hoe that helps.
Author
Owner

@ThRPctmylSgltwH commented on GitHub (Mar 30, 2024):

@milkpirate or @pmorange After following the database migration from mysql to sqlite #1529 I have the same error. I have looked for badly closed double quotes but have not found any. I did have an issue with the text Let's Encrypt on certificates since the sql escape ' remained after migration. I have now corrected that and changed it from Let's Encrypt to Let's Encrypt in the table audit_log. Can you be more specific on which table and which field has an issue with double quotes?

<!-- gh-comment-id:2027997718 --> @ThRPctmylSgltwH commented on GitHub (Mar 30, 2024): @milkpirate or @pmorange After following the database migration from mysql to sqlite #1529 I have the same error. I have looked for badly closed double quotes but have not found any. I did have an issue with the text **Let's Encrypt** on certificates since the sql escape **\'** remained after migration. I have now corrected that and changed it from **Let\'s Encrypt to Let's Encrypt** in the table **audit_log**. Can you be more specific on which table and which field has an issue with double quotes?
Author
Owner

@milkpirate commented on GitHub (Mar 30, 2024):

I guess table/field containing JSON related. JSON is very picky with its quotes and does not accept '. Further the " must be escaped in the field content/value.

But anyway, I migrated to cloudflare tunnels. Its free, there are a lot of tutorials online (e.g. youtube) and it offers a lot (!) of functionality for free (e.g. SSL certs, Oauth for the endpoints aso.). You might need a domain thought but there are really cheap offers for as low as a few bucks / year (if you're not picky with your TLD - have a look here: https://tld-list.com/).

Sure one then is dependent on a cloud provider but still, for me the feature richness is worth it.

<!-- gh-comment-id:2028019236 --> @milkpirate commented on GitHub (Mar 30, 2024): I guess table/field containing JSON related. JSON is very picky with its quotes and does not accept '. Further the " must be escaped in the field content/value. But anyway, I migrated to cloudflare tunnels. Its free, there are a lot of tutorials online (e.g. youtube) and it offers a lot (!) of functionality for free (e.g. SSL certs, Oauth for the endpoints aso.). You might need a domain thought but there are really cheap offers for as low as a few bucks / year (if you're not picky with your TLD - have a look here: https://tld-list.com/). Sure one then is dependent on a cloud provider but still, for me the feature richness is worth it.
Author
Owner

@ThRPctmylSgltwH commented on GitHub (Mar 30, 2024):

I was able to solve it and the explanation is here.
#https://github.com/NginxProxyManager/nginx-proxy-manager/discussions/1529#discussioncomment-8959737

<!-- gh-comment-id:2028089718 --> @ThRPctmylSgltwH commented on GitHub (Mar 30, 2024): I was able to solve it and the explanation is here. #https://github.com/NginxProxyManager/nginx-proxy-manager/discussions/1529#discussioncomment-8959737
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#1996
No description provided.