Azure / azure-webpubsub

Azure Web PubSub Service helps you to manage WebSocket connections and do publish and subscribe in an easy way
https://azure.github.io/azure-webpubsub/
MIT License
135 stars 86 forks source link

Regenerate AccessKey failed #68

Open vicancy opened 3 years ago

vicancy commented 3 years ago

https://github.com/Azure/azure-webpubsub/issues/25

Regenerate AccessKey for WebPubSub resource 'kk-bbush2' failed with status: 'error' and error: 'Service must be active state'. The resource was not in creating status. While I can agree that having 2 separate operations to rotate the same key should cause an error, the error message is invalid and misleading. BTW, even though the first rotate operation reported as succeeded, the key was never rotated. This is not specific to web pubsub - it seems to be the same issue for SignalR.

vicancy commented 3 years ago

Hi @KKhurin Could you kindly provide the repro steps here?

KKhurin commented 3 years ago

Repro steps:

The error should indicate that another key regen is in progress

KKhurin commented 3 years ago

Note: the first regen operation actually succeeds, although it would take a page refresh to pick the new value - could be another usability issue for users who believe they rotated the key and copy the value which is still old.