Closed eyunzhang closed 5 years ago
Hmm, I thought I was able to reproduce it (also with other channels msteams, slack, kik, telegram), but it seems that it is failing even if I remove --with-secrets true
My az cli is 2.0.72
Can you let us know what version of az cli you are using by running az -v
?
@eyunzhang
Also, did you upgrade az cli recently?
Note: Confirmed that functionality is working in 2.0.70
Confirmed repro on version 2.0.74
failure: --with-secrets true success: --with-secrets false
Thanks for looking into the issue. Here is the output of my az -v. And I didn't do any update, it's whatever version I installed several weeks ago. It was working fine until sometime recently (around later of last week).
azure-cli 2.0.73 *
command-modules-nspkg 2.0.3 core 2.0.73 * nspkg 3.0.4 telemetry 1.0.3
thanks @eyunzhang
Can you try running it with the --debug flag and then sharing the output here?
az bot facebook show --subscription xxx --resource-group xx--name xxx --with-secrets true --debug
Here is the output. Please note that I have replaced my real subscription, resource-group and name with place holders.
Command arguments: ['bot', 'facebook', 'show', '--subscription', 'subscriptionId', '--resource-group', 'resource-group', '--name', 'resource-name', '--with-secrets', 'true', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0367F978>, <function OutputProducer.on_global_arguments at 0x036CB660>, <function CLIQuery.on_global_arguments at 0x03727738>]
Event: CommandInvoker.OnPreCommandTableCreate []
Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm']
Loaded module 'acr' in 0.008 seconds.
Loaded module 'acs' in 0.016 seconds.
Loaded module 'advisor' in 0.005 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'ams' in 0.010 seconds.
Loaded module 'apim' in 0.004 seconds.
Loaded module 'appconfig' in 0.006 seconds.
Loaded module 'appservice' in 0.019 seconds.
Loaded module 'backup' in 0.009 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'batch' in 0.023 seconds.
Loaded module 'batchai' in 0.007 seconds.
Loaded module 'billing' in 0.010 seconds.
Loaded module 'botservice' in 0.007 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'cdn' in 0.011 seconds.
Loaded module 'cloud' in 0.005 seconds.
Loaded module 'cognitiveservices' in 0.005 seconds.
Loaded module 'configure' in 0.005 seconds.
Loaded module 'consumption' in 0.008 seconds.
Loaded module 'container' in 0.007 seconds.
Loaded module 'cosmosdb' in 0.016 seconds.
Loaded module 'deploymentmanager' in 0.008 seconds.
Loaded module 'dla' in 0.010 seconds.
Loaded module 'dls' in 0.008 seconds.
Loaded module 'dms' in 0.006 seconds.
Loaded module 'eventgrid' in 0.005 seconds.
Loaded module 'eventhubs' in 0.010 seconds.
Loaded module 'extension' in 0.003 seconds.
Loaded module 'feedback' in 0.004 seconds.
Loaded module 'find' in 0.005 seconds.
Loaded module 'hdinsight' in 0.005 seconds.
Loaded module 'interactive' in 0.001 seconds.
Loaded module 'iot' in 0.006 seconds.
Loaded module 'iotcentral' in 0.004 seconds.
Loaded module 'keyvault' in 0.010 seconds.
Loaded module 'kusto' in 0.006 seconds.
Loaded module 'lab' in 0.006 seconds.
Loaded module 'managedservices' in 0.004 seconds.
Loaded module 'maps' in 0.004 seconds.
Loaded module 'monitor' in 0.009 seconds.
Loaded module 'natgateway' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'netappfiles' in 0.027 seconds.
Loaded module 'network' in 0.038 seconds.
Loaded module 'policyinsights' in 0.009 seconds.
Loaded module 'privatedns' in 0.009 seconds.
Loaded module 'profile' in 0.004 seconds.
Loaded module 'rdbms' in 0.012 seconds.
Loaded module 'redis' in 0.007 seconds.
Loaded module 'relay' in 0.007 seconds.
Loaded module 'reservations' in 0.006 seconds.
Loaded module 'resource' in 0.012 seconds.
Loaded module 'role' in 0.008 seconds.
Loaded module 'search' in 0.005 seconds.
Loaded module 'security' in 0.005 seconds.
Loaded module 'servicebus' in 0.008 seconds.
Loaded module 'servicefabric' in 0.005 seconds.
Loaded module 'signalr' in 0.004 seconds.
Loaded module 'sql' in 0.011 seconds.
Loaded module 'sqlvm' in 0.005 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'storage' in 0.037 seconds.
Loaded module 'vm' in 0.027 seconds.
Loaded all modules in 0.547 seconds. (note: there's always an overhead with the first module loaded)
Extensions directory: 'C:\Users\yunzh.azure\cliextensions'
Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x03801C48>]
az_command_data_logger : command args: bot facebook show --subscription {} --resource-group {} --name {} --with-secrets {} --debug
metadata file logging enabled - writing logs to 'C:\Users\yunzh.azure\commands'.
Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.
@eyunzhang My issue was related to an old token. Looks like yours might be as well.
Can you try:
az logout
az login
and if needed:
az account set --subscription <SUBSCRIPTION>
no, I tried logout and re-login, same issue.
Does it fail with other channels as well (if applicable), or only Facebook?
hi @eyunzhang Can you confirm this is still happening? Does it fail on other channels other than Facebook?
I'm going to close this one assuming the issue no longer happens. Please let me know if that is not the case.
I have a facebook channel, and i'm using az bot facebook to manage it. It was working fine until a few days ago with below error: az bot facebook show --subscription xxx --resource-group xx--name xxx --with-secrets true Error occurred in sending request. Please file an issue on https://github.com/Microsoft/botbuilder-tools/issues
If I remove the "--with-secrets true", the command can successfully return right data. Is there any recent change the breaks the command?