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

    Loading scripts gives a unauthorized message.

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 1.1k Views 1 Watching
    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.
    • O Offline
      ojkaas
      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 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @ojkaas
        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        0

        Online

        587

        Users

        529

        Topics

        3.4k

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