microsoft / devkit-sdk

Arduino library and package for the MXChip IoT DevKit
https://aka.ms/devkit
MIT License
69 stars 52 forks source link

task deploy failed #254

Closed yungez closed 7 years ago

yungez commented 7 years ago

Deploying azure function ... it takes time ... × azure function deploy: Command failed: python C:\Users\yungez/.azure-board-cli/deploy/main.py -S faab228d-df7a-4086-991e-e81c4659d41a -N tweetfunction-9733 -G VSC-IoT-TEST-RG -D C:\Users\yungez\Documents\Arduino\generated_examples\ShakeShake_1/azureFunction -A C:\Python27\Scripts\az.bat --settings twitterAPI=http s://api.twitter.com/1.1/search/tweets.json twitterBearerKey=AAAAAAAAAAAAAAAAAAAAAGVU0AAAAAAAucpxA9aXc2TO6rNMnTcVit1P3YM%3DrQpyFeQ6LOwyvy7cqW5djhLPnFfjEK8H3hA1q fGDh93JRbI1le iotHubConnectionString=HostName=vsciot-hub-test.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=jSRvgUFmg6o64wmw9RcOZZ55+yFYx0P loyLu/lsWGRQ= eventHubConnectionString=Endpoint=sb://iothub-ns-vsciot-hub-67710-495e209aba.servicebus.windows.net/;HostName=vsciot-hub-test.azure-devices.net;S haredAccessKeyName=iothubowner;SharedAccessKey=jSRvgUFmg6o64wmw9RcOZZ55+yFYx0PloyLu/lsWGRQ= Traceback (most recent call last): File "C:\Users\yungez/.azure-board-cli/deploy/main.py", line 82, in raise e ValueError: time data '2017-04-11T07:53:25.817Z' does not match format '%Y-%m-%d %H:%M:%S.%f'

(node:37444) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Command failed: python C:\Users\yungez/.azure-board-cli/deploy/ma in.py -S faab228d-df7a-4086-991e-e81c4659d41a -N tweetfunction-9733 -G VSC-IoT-TEST-RG -D C:\Users\yungez\Documents\Arduino\generated_examples\ShakeShake_1/azu reFunction -A C:\Python27\Scripts\az.bat --settings twitterAPI=https://api.twitter.com/1.1/search/tweets.json twitterBearerKey=AAAAAAAAAAAAAAAAAAAAAGVU0AAAAAAA ucpxA9aXc2TO6rNMnTcVit1P3YM%3DrQpyFeQ6LOwyvy7cqW5djhLPnFfjEK8H3hA1qfGDh93JRbI1le iotHubConnectionString=HostName=vsciot-hub-test.azure-devices.net;SharedAccess KeyName=iothubowner;SharedAccessKey=jSRvgUFmg6o64wmw9RcOZZ55+yFYx0PloyLu/lsWGRQ= eventHubConnectionString=Endpoint=sb://iothub-ns-vsciot-hub-67710-495e209aba.s ervicebus.windows.net/;HostName=vsciot-hub-test.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=jSRvgUFmg6o64wmw9RcOZZ55+yFYx0PloyLu/lsWGRQ= Traceback (most recent call last):

image

helenlivsc commented 7 years ago

Some Azure token expiry date/time is in different format and our fix is to no check the date/time in advance, because Azure will verify this.

helenlivsc commented 7 years ago

Fixed.