Skype SDK入口点登录用户错误:NoFQDN

Skype SDK entry point to sign in a user error: NoFQDN

本文关键字:错误 NoFQDN 用户 登录 SDK 入口 Skype      更新时间:2023-09-26

我试图通过使用其SDK登录Skype,但我一直击中以下错误,"错误:NoFQDN"。在网上搜索后,我找不到任何可能的解决方案,甚至找不到错误的含义。有人能解释一下吗或者给我点有用的线索?非常感谢,谢谢。

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

  /**
 * 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);
    });
    });

有人能看出这有什么问题吗?

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

设置除"null"/undefined以外的值将启动登录。注意,查看Javascript代码,它实际上是一个硬编码检查。