mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #2914] Getting domain_names.map is not a function error in HOSTS #1996
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1996
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mora-phi on GitHub (May 12, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2914
Checklist
jc21/nginx-proxy-manager:latestdocker image?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 :
domain_names.map is not a function
In Chrome's console, the following can be seen :
Nginx Proxy Manager Version
2.10.3
To Reproduce
Steps to reproduce the behavior:
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...
@mora-phi commented on GitHub (Sep 14, 2023):
Hi,
Now on 2.10.4 and still seeing the same error.
Any pointers ?
@milkpirate commented on GitHub (Dec 26, 2023):
I try to provision my
nginxproxymanagervia writing to the sqlite DB. I get the same message when I insert the certificate entry. How did you (@pmorange) solve the problem?@mora-phi commented on GitHub (Dec 28, 2023):
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.
@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?
@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.
@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