Posts

Showing posts from July, 2020

Web Deploy detected insufficient space on disk in Azure

Error:  Web Deploy detected insufficient space on disk. Explanation: In Azure Portal, When you run release pipeline using Web Deploy method and you have subscription that is free or provide less storage then you can face this error. Solution: To overcome this issue either you need to reduce the size of your project if you want to use free subscription or update your plan either to shared or some other plan that has required configuration. Thanks!

Azure - Failed to deploy web package to App Service. Internal Server Error (CODE: 500)- Fixed

Image
Error:  Failed to deploy web package to App Service. Internal Server Error (CODE: 500) Explanation: I was getting this error when trying to deploy azure functions with release pipeline. I got this and there was no additional information logs with this. I wasted my one day on this issue. Find Error: You can see the actual error by changing  deploy method for  web deploy   by editing your pipeline. My Root Cause:  "Web Deploy detected insufficient space on disk." So this was the issue for me, it may be because of my subscription.  For different persons root cause might be vary but you can see actual error using this deploy method and can apply your fixes accordingly. Thanks!!!

Swagger for Azure functions: Undocumented TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. Fixed.

Error -  Undocumented TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body.  Root Cause: I have my Azure functions Project for which I am configuring swagger documentation using Nuget Package " AzureExtensions.Swashbuckle ". When I am opening swagger url in browser and I try one get method then I face this error because 'Get' method has body that should not. My function code is:  public async Task<IActionResult> Test(             [HttpTrigger(AuthorizationLevel.Anonymous, Http.Methods.Get, Route = Version + "/test")] HttpRequest request,             ExecutionContext context, IBinder binder)         { } Solution: To remove the body from 'Get' method, I need to specify some ignore attribute to function parameters as below.  public async Task<IActionResult> GetTest(             [HttpTrigger(AuthorizationLevel.Anonymous, Http.Methods.Get, Route = Version + "/test")] HttpRequ