Notification Hub - Can't update Google API key
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Issue**
We're using an Azure CLI script to update the Google API key of this Notification Hub. However, `az notification-hub credential gcm update` started randomly "failing". This Azure CLI command doesn't seem to have a timeout; it just spins forever.
`az notification-hub credential gcm update --resource-group $resourceGroup --notification-hub-name $notificationHub --namespace-name $hubNamespace --google-api-key $googleKey`
We've contacted Azure support about this and they told us that, to perform this operation, Azure contacts Google's servers to validate those gcm credentials. This is a synchronous operation. Google is taking 85 seconds to perform that validation, and Azure is timing out after 60 seconds, so the request doesn't get through.
**Suggestion**
Adding a timeout parameter or simply timeout after ~60 seconds, instead of running forever.
Contributor guide
Assessment
This issue has not been assessed yet.