locked
Azure CLI 'deployment list' command fails RRS feed

  • Question

  • Hi,

    Recently, the "azure site deployment list" command has stopped working.

    The error in the azure.err file is "Invalid URI: The hostname could not be parsed".

    I noticed this stopped working on some sites and not others about a month ago, but after restarting the working sites, it would then fail. So this looks like an introduced bug with a Kudu version.

    Based on the callstack and the timing, I think it's caused by the introduction of method Kudu.Services.Infrastructure.GetBaseUri(HttpRequestMessage request) in commit 41835558895f37dbb0efb30fe6b420e99b320388

    I've just checked and it's still happening, with Azure Tool version 0.10.1, Kudu Build 55.50610.2267.0, Azure App Service 55.0.8598.49

    Here's the azure.err:

    2016-06-17T00:46:18.234Z:
    { [Error: An error has occurred.]
      stack: [Getter/Setter],
      message: 'An error has occurred.',
      exceptionmessage: 'Invalid URI: The hostname could not be parsed.',
      exceptiontype: 'System.UriFormatException',
      stacktrace: '   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)\r\n   at System.Uri..ctor(String uriString)\r\n   at System.UriBuilder.get_Uri()\r\n   at Kudu.Services.Infrastructure.UriHelper.GetBaseUri(HttpRequestMessage request)\r\n   at Kudu.Services.Deployment.DeploymentController.<GetResults>d__22.MoveNext()\r\n   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n   at Kudu.Services.Deployment.DeploymentController.GetDeployResults()\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()',
      statusCode: 500,
      requestId: 'fbeacc4b-cfe3-4381-a211-a4478b8a68a2',
      __frame: 
       { name: 'scm_doDeploymentsGet__6',
         line: 246,
         file: 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\commands\\asm\\site.deployment.js',
         prev: 
          { name: 'listDeployments',
            line: 307,
            file: 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\commands\\asm\\site.deployment.js',
            prev: [Object],
            calls: 1,
            active: false,
            offset: 1,
            col: 26 },
         calls: 1,
         active: false,
         offset: 13,
         col: 44 },
      rawStack: [Getter] }
    Error: An error has occurred.
      <<< async stack >>>
      at scm_doDeploymentsGet__6 (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\lib\commands\asm\site.deployment.js:259:45)
      at listDeployments (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\lib\commands\asm\site.deployment.js:308:27)
      at __1 (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\lib\commands\asm\site.deployment.js:54:9)
      <<< raw stack >>>
        at Function.ServiceClient._normalizeError (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\node_modules\azure-common\lib\services\serviceclient.js:815:23)
        at C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\node_modules\azure-common\lib\services\filters\errorhandlingfilter.js:44:29
        at Request._callback (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\node_modules\azure-common\lib\http\request-pipeline.js:109:14)
        at Request.self.callback (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\node_modules\azure-common\node_modules\request\request.js:199:22)
        at emitTwo (events.js:87:13)
        at Request.emit (events.js:172:7)
        at Request.<anonymous> (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\node_modules\azure-common\node_modules\request\request.js:1160:14)
        at emitOne (events.js:82:20)
        at Request.emit (events.js:169:7)
        at IncomingMessage.<anonymous> (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\node_modules\azure-common\node_modules\request\request.js:1111:12)
    

    Thanks.

    Friday, June 17, 2016 12:52 AM

Answers

  • Looks like this is now fixed in 55.50620.2286.0

    Thanks!  :)

    David.

    • Marked as answer by deruss79 Friday, July 8, 2016 3:53 AM
    Thursday, June 23, 2016 12:48 AM

All replies

  • Hello,

    Thank you for posting here!

    I am not sure on this query, so I am checking with our back-end team and will get back to you as soon as I have any updates on the same.

    Regards,

    Swikruti

    Friday, June 17, 2016 2:34 PM
  • Yes, there does appear to be a Kudu regression here. We will investigate.

    thanks,
    David

    Friday, June 17, 2016 3:16 PM
  • Looks like this is now fixed in 55.50620.2286.0

    Thanks!  :)

    David.

    • Marked as answer by deruss79 Friday, July 8, 2016 3:53 AM
    Thursday, June 23, 2016 12:48 AM