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
"_recordingName": "Events/Post an event returns \"Bad request\" response",
4
+
"creator": {
5
+
"comment": "persister:fs",
6
+
"name": "Polly.JS",
7
+
"version": "6.0.5"
8
+
},
9
+
"entries": [
10
+
{
11
+
"_id": "b35f8f8450dc70b83d7661b05817ff7e",
12
+
"_order": 0,
13
+
"cache": {},
14
+
"request": {
15
+
"bodySize": 867,
16
+
"cookies": [],
17
+
"headers": [
18
+
{
19
+
"_fromType": "array",
20
+
"name": "accept",
21
+
"value": "application/json"
22
+
},
23
+
{
24
+
"_fromType": "array",
25
+
"name": "content-type",
26
+
"value": "application/json"
27
+
}
28
+
],
29
+
"headersSize": 592,
30
+
"httpVersion": "HTTP/1.1",
31
+
"method": "POST",
32
+
"postData": {
33
+
"mimeType": "application/json",
34
+
"params": [],
35
+
"text": "{\"data\":{\"attributes\":{\"aggregation_key\":\"aggregation_key_123\",\"attributes\":{\"author\":{\"name\":\"[email protected]\",\"type\":\"user\"},\"change_metadata\":{\"dd\":{\"team\":\"datadog_team\",\"user_email\":\"[email protected]\",\"user_id\":\"datadog_user_id\",\"user_name\":\"datadog_username\"},\"resource_link\":\"datadog.com/feature/fallback_payments_test\"},\"changed_resource\":{\"name\":\"fallback_payments_test\",\"type\":\"feature_flag\"},\"impacted_resources\":[{\"name\":\"payments_api\",\"type\":\"service\"}],\"new_value\":{\"enabled\":true,\"percentage\":\"50%\",\"rule\":{\"datacenter\":\"devcycle.us1.prod\"}},\"prev_value\":{\"enabled\":true,\"percentage\":\"10%\",\"rule\":{\"datacenter\":\"devcycle.us1.prod\"}}},\"category\":\"invalid\",\"integration_id\":\"custom-events\",\"message\":\"payment_processed feature flag has been enabled\",\"tags\":[\"env:api_client_test\"],\"title\":\"payment_processed feature flag updated\"},\"type\":\"event\"}}"
"text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"JSON validation failed at $.data.attributes.category: value must be one of: [\\\"alert\\\", \\\"change\\\"].\"}]}"
"_recordingName": "Events/Post an event returns \"OK\" response",
4
+
"creator": {
5
+
"comment": "persister:fs",
6
+
"name": "Polly.JS",
7
+
"version": "6.0.5"
8
+
},
9
+
"entries": [
10
+
{
11
+
"_id": "12f2ce8ce9b919c06a471c2b7d261fb3",
12
+
"_order": 0,
13
+
"cache": {},
14
+
"request": {
15
+
"bodySize": 866,
16
+
"cookies": [],
17
+
"headers": [
18
+
{
19
+
"_fromType": "array",
20
+
"name": "accept",
21
+
"value": "application/json"
22
+
},
23
+
{
24
+
"_fromType": "array",
25
+
"name": "content-type",
26
+
"value": "application/json"
27
+
}
28
+
],
29
+
"headersSize": 592,
30
+
"httpVersion": "HTTP/1.1",
31
+
"method": "POST",
32
+
"postData": {
33
+
"mimeType": "application/json",
34
+
"params": [],
35
+
"text": "{\"data\":{\"attributes\":{\"aggregation_key\":\"aggregation_key_123\",\"attributes\":{\"author\":{\"name\":\"[email protected]\",\"type\":\"user\"},\"change_metadata\":{\"dd\":{\"team\":\"datadog_team\",\"user_email\":\"[email protected]\",\"user_id\":\"datadog_user_id\",\"user_name\":\"datadog_username\"},\"resource_link\":\"datadog.com/feature/fallback_payments_test\"},\"changed_resource\":{\"name\":\"fallback_payments_test\",\"type\":\"feature_flag\"},\"impacted_resources\":[{\"name\":\"payments_api\",\"type\":\"service\"}],\"new_value\":{\"enabled\":true,\"percentage\":\"50%\",\"rule\":{\"datacenter\":\"devcycle.us1.prod\"}},\"prev_value\":{\"enabled\":true,\"percentage\":\"10%\",\"rule\":{\"datacenter\":\"devcycle.us1.prod\"}}},\"category\":\"change\",\"integration_id\":\"custom-events\",\"message\":\"payment_processed feature flag has been enabled\",\"tags\":[\"env:api_client_test\"],\"title\":\"payment_processed feature flag updated\"},\"type\":\"event\"}}"
0 commit comments