none
Windows Live Sdk : Something went wrong and we can't sign you in at the moment. Please try again later

    Question

  • I trying to use the Windows Live SDK as below in my web application.

    <script src="//js.live.net/v5.0/wl.js"></script>
    <script type="text/javascript">
        WL.init({ client_id: "00000000440D0319", redirect_uri: "http://macrosofttechnologies.com/" });
    
        WL.login(
         { "scope": "wl.skydrive" },
         function (response) {
             if (response.status == "connected") {
                 getFiles();
             }
             else {
                 log("Could not connect, status = " + response.status);
             }
         });
    
        function getFiles() {
            var files_path = "/me/skydrive/files";
            WL.api({ path: files_path, method: "GET" }, onGetFilesComplete);
        }
    
        function onGetFilesComplete(response) {
            if (response.error) {
                log("Cannot get files and folders: " + JSON.stringify(response.error).replace(/,/g, ",\n"));
            }
            else {
                var items = response.data;
                var foundFolder = 0;
                for (var i = 0; i < items.length; i++) {
                    if (items[i].type == "folder") {
                        log("Found a folder with the following information: " + JSON.stringify(items[i]).replace(/,/g, ",\n"));
                        foundFolder = 1;
                        break;
                    }
                }
                if (foundFolder == 0) {
                    log("Unable to find any folders");
                }
            }
        }
    
        function log(message) {
            var child = document.createTextNode(message);
            var parent = document.body;
            parent.appendChild(child);
            parent.appendChild(document.createElement("br"));
        }
    </script>

    It was working initially navigating to login screen and prompts me to enter my live account details. But now suddenly I keep getting this error message as shown in the figure

    I tried clearing the history and cookies in my IE and restarted my machine nothing worked. Searching in the internet is not much helpful for my issue.

    • Edited by mkiruba Saturday, August 11, 2012 12:24 PM Aligned the code
    Saturday, August 11, 2012 12:21 PM

All replies