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/event-grid/troubleshoot-subscription-validation.md
+21-31Lines changed: 21 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,42 +6,22 @@ author: spelluru
6
6
7
7
ms.service: event-grid
8
8
ms.topic: conceptual
9
-
ms.date: 04/30/2020
9
+
ms.date: 05/21/2020
10
10
ms.author: spelluru
11
11
---
12
12
13
-
# Troubleshoot Azure Event Grid errors
14
-
This troubleshooting guide provides you information on troubleshooting event subscription validations.
15
-
16
-
17
-
## Troubleshoot event subscription validation
18
-
19
-
During event subscription creation, if you're seeing an error message such as `The attempt to validate the provided endpoint https://your-endpoint-here failed. For more details, visit https://aka.ms/esvalidation`, it indicates that there's a failure in the validation handshake. To resolve this error, verify the following aspects:
20
-
21
-
- Do an HTTP POST to your webhook url with a [sample SubscriptionValidationEvent](webhook-event-delivery.md#validation-details) request body using Postman or curl or similar tool.
22
-
- If your webhook is implementing synchronous validation handshake mechanism, verify that the ValidationCode is returned as part of the response.
23
-
- If your webhook is implementing asynchronous validation handshake mechanism, verify that you are the HTTP POST is returning 200 OK.
24
-
- If your webhook is returning 403 (Forbidden) in the response, check if your webhook is behind an Azure Application Gateway or Web Application Firewall. If it is, then your need to disable these firewall rules and do an HTTP POST again:
25
-
26
-
920300 (Request Missing an Accept Header, we can fix this)
27
-
28
-
942430 (Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12))
This article provides you information on troubleshooting event subscription validations.
35
15
36
16
> [!IMPORTANT]
37
17
> For detailed information on endpoint validation for webhooks, see [Webhook event delivery](webhook-event-delivery.md).
38
18
39
-
## Validate event grid event subscription using Postman
19
+
## Validate Event Grid event subscription using Postman
40
20
Here's an example of using Postman for validating a webhook subscription of an Event Grid event:
41
21
42
22

43
23
44
-
Here is a sample SubscriptionValidationEvent JSON:
24
+
Here is a sample **SubscriptionValidationEvent** JSON:
45
25
46
26
```json
47
27
[
@@ -68,7 +48,15 @@ Here is the sample successful response:
68
48
}
69
49
```
70
50
71
-
To learn more about event grid event validation for webhooks, see [Endpoint validation with event grid events](webhook-event-delivery.md#endpoint-validation-with-event-grid-events).
51
+
To learn more about Event Grid event validation for webhooks, see [Endpoint validation with event grid events](webhook-event-delivery.md#endpoint-validation-with-event-grid-events).
52
+
53
+
54
+
## Validate Event Grid event subscription using Curl
55
+
Here's the sample Curl command for validating a webhook subscription of an Event Grid event:
## Validate cloud event subscription using Postman
74
62
Here's an example of using Postman for validating a webhook subscription of a cloud event:
@@ -77,12 +65,14 @@ Here's an example of using Postman for validating a webhook subscription of a cl
77
65
78
66
Use the **HTTP OPTIONS** method for validation with cloud events. To learn more about cloud event validation for webhooks, see [Endpoint validation with cloud events](webhook-event-delivery.md#endpoint-validation-with-event-grid-events).
79
67
80
-
## Event grid event subscription validation using Curl
81
-
Here's the sample Curl command for validating a webhook subscription of an Event Grid event:
68
+
## Error code: 403
69
+
If your webhook is returning 403 (Forbidden) in the response, check if your webhook is behind an Azure Application Gateway or Web Application Firewall. If it's, you need to disable the following firewall rules and do an HTTP POST again:
If you need more help, post your issue in the [Stack Overflow forum](https://stackoverflow.com/questions/tagged/azure-eventgrid) or open a [support ticket](https://azure.microsoft.com/support/options/).
0 commit comments