Skip to content

Hostname is not allowed 127.0.0.1 #3279

@QYG2297248353

Description

@QYG2297248353

Describe the Bug

Hostname is not allowed 127.0.0.1

Database

PostgreSQL

Relevant log output

{
    "error": {
        "issues": [
            {
                "validation": "regex",
                "code": "invalid_string",
                "message": "Invalid",
                "path": [
                    "payload",
                    "hostname"
                ]
            }
        ],
        "name": "ZodError",
        "message": "[\n  {\n    \"validation\": \"regex\",\n    \"code\": \"invalid_string\",\n    \"message\": \"Invalid\",\n    \"path\": [\n      \"payload\",\n      \"hostname\"\n    ]\n  }\n]",
        "stack": "ZodError: [\n  {\n    \"validation\": \"regex\",\n    \"code\": \"invalid_string\",\n    \"message\": \"Invalid\",\n    \"path\": [\n      \"payload\",\n      \"hostname\"\n    ]\n  }\n]\n    at get error (/app/.next/server/chunks/379.js:1:9088)\n    at n (/app/.next/server/app/api/admin/users/route.js:1:6024)\n    at j (/app/.next/server/app/api/send/route.js:1:9194)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async te.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17826)\n    at async te.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22492)\n    at async doRender (/app/node_modules/next/dist/server/base-server.js:1455:42)\n    at async responseGenerator (/app/node_modules/next/dist/server/base-server.js:1814:28)\n    at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/next/dist/server/base-server.js:1824:28)\n    at async NextNodeServer.renderPageComponent (/app/node_modules/next/dist/server/base-server.js:2240:24)",
        "errors": [
            {
                "validation": "regex",
                "code": "invalid_string",
                "message": "Invalid",
                "path": [
                    "payload",
                    "hostname"
                ]
            }
        ]
    }
}

Which Umami version are you using? (if relevant)

No response

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed in devFixed in the dev branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions