You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-web-pubsub/howto-troubleshoot-common-issues.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.devlang: csharp
11
11
12
12
# Troubleshooting guide for common issues
13
13
14
-
This article provides troubleshooting guidance for some of the common issues that customers might encounter. Listed errors are available to check by turn on `LiveTrace` tool or collect from diagnostics following [Capture resource logs](https://learn.microsoft.com/azure/azure-web-pubsub/howto-troubleshoot-resource-logs).
14
+
This article provides troubleshooting guidance for some of the common issues that customers might encounter. Listed errors are available to check when you turn on `LiveTrace` tool or collect from diagnostics following [Capture resource logs](https://learn.microsoft.com/azure/azure-web-pubsub/howto-troubleshoot-resource-logs).
15
15
16
16
## 404 from HttpHandlerUnexpectedResponse
17
17
@@ -25,8 +25,8 @@ This error indicates the event is registered in Web PubSub settings but fail to
25
25
26
26
### Troubleshooting guide
27
27
28
-
- Check your upstream server function or method whether it is good to work.
29
-
- Check whether this event is intended to register. If not, simply remove it from the hub settings in Web PubSub side.
28
+
- Check your upstream server function or method whether it's good to work.
29
+
- Check whether this event is intended to register. If not, remove it from the hub settings in Web PubSub side.
30
30
31
31
## 500 from HttpHandlerUnexpectedResponse
32
32
@@ -45,7 +45,7 @@ This error indicates event request get a `500` response from registered upstream
45
45
46
46
## AbuseProtectionResponseMissingAllowedOrigin
47
47
48
-
Web PubSub follows the [CloudEvents Abuse Protection](https://github.com/cloudevents/spec/blob/v1.0/http-webhook.md#4-abuse-protection) to validate the upstream webhook. Every registered upstream webhook URL will be validated by this mechanism. The `WebHook-Request-Origin` request header is set to the service domain name `<web-pubsub-name>.webpubsub.azure.com`, and it expects the response to have a header `WebHook-Allowed-Origin` to contain this domain name or `*`.
48
+
Web PubSub follows the [CloudEvents Abuse Protection](https://github.com/cloudevents/spec/blob/v1.0/http-webhook.md#4-abuse-protection) to validate the upstream webhook. Every registered upstream webhook URL will be validated. The `WebHook-Request-Origin` request header is set to the service domain name `<web-pubsub-name>.webpubsub.azure.com`, and it expects the response to have a header `WebHook-Allowed-Origin` to contain this domain name or `*`.
49
49
50
50
### Possible errors
51
51
@@ -55,9 +55,9 @@ Web PubSub follows the [CloudEvents Abuse Protection](https://github.com/cloudev
55
55
56
56
Review the upstream side code to ensure when upstream receives the `OPTIONS` preflight request from Web PubSub service, it's correctly handled following the rule that contains the expected header `WebHook-Allowed-Origin` and value.
57
57
58
-
Besides, you can update to convenience server SDK which automatically handles `Abuse Protection` for you.
58
+
Besides, you can update to convenience server SDK, which automatically handles `Abuse Protection` for you.
59
59
60
-
-[@web-pubsub-express for JaveScript](https://www.npmjs.com/package/@azure/web-pubsub-express)
60
+
-[@web-pubsub-express for Javascript](https://www.npmjs.com/package/@azure/web-pubsub-express)
61
61
-[Microsoft.Azure.WebPubSub.AspNetCore for C#](https://www.nuget.org/packages/Microsoft.Azure.WebPubSub.AspNetCore)
62
62
63
63
## 401 Unauthorized from AbuseProtectionResponseInvalidStatusCode
@@ -68,7 +68,7 @@ Besides, you can update to convenience server SDK which automatically handles `A
68
68
69
69
### Root cause
70
70
71
-
This error indicates the `Abuse Protection` request get a `401` response from the registered upstream URL. See [`Abuse Protection`](https://learn.microsoft.com/azure/azure-web-pubsub/howto-develop-eventhandler#upstream-and-validation) for more details.
71
+
This error indicates the `Abuse Protection` request get a `401` response from the registered upstream URL. For me information, see [`Abuse Protection`](https://learn.microsoft.com/azure/azure-web-pubsub/howto-develop-eventhandler#upstream-and-validation).
72
72
73
73
### Troubleshooting guide
74
74
@@ -79,12 +79,12 @@ This error indicates the `Abuse Protection` request get a `401` response from th
79
79
80
80
When the client is connected to Azure Web PubSub, the persistent connection between the client and Azure Web PubSUb can sometimes drop for different reasons. This section describes several possibilities causing such connection drop and provides some guidance on how to identify the root cause.
81
81
82
-
You can check the metric `Connection Close Count` from Azure Portal.
82
+
You can check the metric `Connection Close Count` from Azure portal.
83
83
84
84
### Possible reasons and root cause
85
85
86
86
| Reason | Root cause |
87
-
| -- | -- |
87
+
|--|--|
88
88
| Normal | Close by clients |
89
89
| ClosedByAppServer | Close by server triggered Rest API call like [`CloseConnection`](https://learn.microsoft.com/rest/api/webpubsub/dataplane/web-pub-sub/close-connection?tabs=HTTP)|
90
90
| ServiceReload | Close by service due to regular maintenance or backend auto scales |
@@ -101,5 +101,5 @@ Web PubSub different tiers have a hard limit on concurrent connection. This erro
101
101
102
102
### Solution
103
103
104
-
Scale up to a paid tier(Standard or Premium) to have at least 1000 connections or scale out to more units that supports more connections.
104
+
Scale up to a paid tier(Standard or Premium) to have at least 1000 connections or scale out to more units that support more connections.
0 commit comments