2

我正在尝试使用其 SDK 登录 Skype,但我一直遇到以下错误“错误:NoFQDN”。在网上搜索后,我找不到任何可能的解决方案,甚至找不到错误的含义。任何人都可以对此有所了解或将我指向任何有用的来源吗?将不胜感激,谢谢。

这是我用来尝试登录 Skype 的 javascript。

  /**
 * This script demonstrates how to sign the user in and how to sign it out.
 */
$j(function () {
    'use strict';    // create an instance of the Application object;
    // note, that different instances of Application may
    // represent different users
    var Application
    var client;
    Skype.initialize({
        apiKey: 'SWX-BUILD-SDK',
    }, function (api) {
        Application = api.application;
        client = new Application();
    }, function (err) {
        alert('some error occurred: ' + err);
    });

    // when the user clicks on the "Sign In" button    
    $j('#signin').click(function () {
    // start signing in
    client.signInManager.signIn({
        username: $j('#username').text(),
        password: $j('#password').text()
    }).then(
        //onSuccess callback
        function () {
            // when the sign in operation succeeds display the user name
            alert('Signed in as ' + client.personsAndGroupsManager.mePerson.displayName());
        }, 
        //onFailure callback
        function (error) {
            // if something goes wrong in either of the steps above,
            // display the error message
            alert(error || 'Cannot sign in');
        });
    });

    // when the user clicks on the "Sign Out" button
    $j('#signout').click(function () {
    // start signing out
    client.signInManager.signOut()
        .then(
            //onSuccess callback
            function () {
                // and report the success
                alert('Signed out');
            }, 
        //onFailure callback
        function (error) {
            // or a failure
            alert(error || 'Cannot sign in');
        });
    });

    // whenever state changes, display its value    
    client.signInManager.state.changed(function (state) {
        $j('#application_state').text(state);
    });
    });

任何人都可以看到这个问题吗?

4

1 回答 1

0

深入研究后:您收到的错误消息指出登录参数(用户、密码)为“null”/未定义。

设置“null”/undefined 以外的值将开始登录。请注意,查看 Javascript 代码,它实际上是一个硬编码检查。

于 2016-06-15T17:30:43.613 回答