繁体   English   中英

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

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

我正在尝试通过使用其 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);
    });
    });

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM