电路 SDK 方法错误 circuit.logon

Circuit SDK error on method circuit.logon

我正在尝试将我的 Circuit 机器人投入生产。我的应用程序上传到 Azure Web App Service。当我在沙盒上测试机器人时,它运行良好。但是,如果我只更改配置(client_id、client_secred 和域)并重新启动应用程序,它会落在方法 circuit.logon 上,并显示此错误消息:

Error on ciruit.logon. The Application null  is not enabled for scope ::=[CALL_RECORDING]

如果我像这样指定创建电路客户端的范围:

scope: 'READ_USER_PROFILE'

或它更改为的任何其他范围:

Error on ciruit.logon. The Application null  is not enabled for scope ::=[READ_USER_PROFILE]

应用程序 null 困扰我。由于最后一部分错误,我尝试了所有范围,但它不起作用。什么可能导致此错误?

正如罗杰所说:

This should work fine, especially since the same code worked on the sandbox. If you don't specify a scope in the Circuit.Client constructor, then the SDK asked for all scopes. In that case the app should be registered with all scopes. But if you just request READ_USER_PROFILE for example in the Circuit.Client constructor, then the app only need at least that scope set in its registration. The 'application null' is not a problem. The only thing I can think of is that the bot registration does not have any scopes defined. Try to change the registration scopes for your bot and save if again

我把他的评论复制为"an answer"这样安德烈就有机会select一个"good answer"满足他的要求