• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Loading scripts gives a unauthorized message.

    scheduled pinned locked moved General Discussion
    2 posts 2 posters 1.2k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • O offline
      ojkaas
      global:last-edited-by,

      I am starting to play around with adding custom scripts to my dashboard, i took the weather example in the demo and added it to my environment, but i am getting the following problem while loading the scripts:

      • i tries to load http://mydomain:myport/mc/rest/templates/getHtml?script=operations%5Cutrecht-weather-config.js&scriptBindings=%7B%7D&template=weather-template.html

      Failed to load resource: the server responded with a status of 400 (Bad request)

      If i try to go to the url myself i get the following:
      {
      "errorMessage" : "HTTP 401 Unauthorized"
      }

      Does anybody have an idea how to solve this?

      jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @ojkaas
        global:last-edited-by,

        @ojkaas can you check mycontroller/log/mycontroller.log file. You can see actual error there. Or in the browser for this query response.

        If you want to try url outside to access any resource on MyController, you should pass basic auth along with it.

        one-reply-to-this-post last-reply-time reply quote 0
        • first-post
          last-post

        0

        online

        644

        users

        532

        topics

        3.4k

        posts
        Copyright © 2015-2025 MyController.org | Contributors | Localization