Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Cloudron Error Cannot read property 'endsWith' of null

    Support
    2
    5
    171
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hamann last edited by

      When I want to create a redirection, I cannot save it and get the error "Cloudron Error
      Cannot read property 'endsWith' of null "

      However, it was still possible with another app before the last update. With the other app, however, I can no longer adjust the forwarding either.

      nebulon 1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff @hamann last edited by

        @hamann ah actually this bug is already fixed with https://git.cloudron.io/cloudron/box/-/commit/cefbe7064f4c7b31fb93bbf7ed85bf916aa5cf39 but pending a release.

        For the meantime you could tweak the file manually at /home/yellowtent/box/src/apps.js and then systemctl restart box or enable the mailbox for that app temporarily.

        1 Reply Last reply Reply Quote 1
        • nebulon
          nebulon Staff @hamann last edited by

          @hamann is there any more context from the app task logs? Maybe some callstack or so? Also which DNS provider are you using for that domain?

          H 1 Reply Last reply Reply Quote 0
          • H
            hamann @nebulon last edited by

            @nebulon

            we use 1and1

            Cannot read property 'endsWith' of null
            at Function.BoxError.toHttpError (/home/yellowtent/box/src/boxerror.js:107:16)
            at setLocation (/home/yellowtent/box/src/routes/apps.js:413:37)
            at processTicksAndRejections (internal/process/task_queues.js:95:5) {
            status: 500,
            internalError: TypeError: Cannot read property 'endsWith' of null
            at Object.setLocation (/home/yellowtent/box/src/apps.js:1658:58)
            at setLocation (/home/yellowtent/box/src/routes/apps.js:412:45)
            at Layer.handle [as handle_request] (/home/yellowtent/box/node_modules/express/lib/router/layer.js:95:5)
            at next (/home/yellowtent/box/node_modules/express/lib/router/route.js:137:13)
            at /home/yellowtent/box/src/routes/accesscontrol.js:90:9
            at Layer.handle [as handle_request] (/home/yellowtent/box/node_modules/express/lib/router/layer.js:95:5)
            at next (/home/yellowtent/box/node_modules/express/lib/router/route.js:137:13)
            at load (/home/yellowtent/box/src/routes/apps.js:79:5)
            at processTicksAndRejections (internal/process/task_queues.js:95:5),
            details: null
            POST /api/v1/apps/da7d45ad-11a3-482a-ab9f-91e5d7b87aa7/configure/location 500 Internal Server Error Cannot read property 'endsWith' of null 17.855 ms - 95
            
            1 Reply Last reply Reply Quote 0
            • H
              hamann last edited by

              I removed and reinstalled one of the two WordPress apps today. Same DNS settings and everything worked as it should. But the other app still has the problem. Is there a connection between plugins, themes or changing the WordPress language which is causing the problem?

              nebulon 1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff @hamann last edited by

                @hamann ah actually this bug is already fixed with https://git.cloudron.io/cloudron/box/-/commit/cefbe7064f4c7b31fb93bbf7ed85bf916aa5cf39 but pending a release.

                For the meantime you could tweak the file manually at /home/yellowtent/box/src/apps.js and then systemctl restart box or enable the mailbox for that app temporarily.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Powered by NodeBB