-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web Site Extension installation returns Bad Request when called without content #2819
Comments
@pavelzel Do you know someone from WebApps who could take a look into this? |
Also, not sure if this belongs here or in a separate issue, but the DELETE operation for site extensions returns OK status code, which doesn't match what generated .NET Azure SDK expects (NoContent). |
@naveedaz Do you know if we've made any updates to the API but haven't yet updated the API spec? |
It appears that a new issue has come up in the past few days. Now whenever we attempt to install a site extension via Azure .NET SDK, after a PUT /siteextensions request, the SDK generates a GET /siteextensions/ request, which returns 404, and ultimately results in a failure of the call to install the site extension. Additionally, there seems to a be a problem retrieving site extensions via SDK's Get and List method (they don't return the extension at all), and attempting to delete an extension just leaves it present on the web app. |
@dsgouda @pavelzel @naveedaz I'm still having problems in 2020. Using List Site Extensions works ok so I'm pretty sure it's not because the rest of my request is invalid (e.g. site name, subscription etc). |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp. Issue DetailsAs suggested by @hovsepm here, Azure SDK calls fail to create site extensions when they attempt to PUT a request with null content. Setting request body to an empty JSON object (
|
Thank you for your speedy response! |
Hello - what was the follow up please? I've just hit this issue some years later. Thanks! |
Still an issue 6 years on. Can we just all agree that 6 years of stability with sending an empty JSON object ( |
No problem with that, so long as that's what the specs say (which should then flow through to fixing any downstream issues, IIUC). |
As suggested by @hovsepm here, Azure SDK calls fail to create site extensions when they attempt to PUT a request with null content. Setting request body to an empty JSON object (
{}
) fixes the problem.The text was updated successfully, but these errors were encountered: