forked from kevinburke/twilio-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alert_descriptions.go
146 lines (140 loc) · 8.43 KB
/
alert_descriptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
package twilio
var alertDestination = []byte(`
{
"account_sid": "AC58f1e8f2b1c6b88ca90a012a4be0c279",
"alert_text": "sourceComponent=14100&ErrorCode=14101&LogLevel=ERROR&Msg=The+destination+number+for+a+TwiML+message+can+not+be+the+same+as+the+originating+number+of+an+incoming+message.&EmailNotification=false",
"api_version": "2008-08-01",
"date_created": "2016-10-26T01:11:13Z",
"date_generated": "2016-10-26T01:11:12Z",
"date_updated": "2016-10-26T01:11:18Z",
"error_code": "14101",
"log_level": "error",
"more_info": "https://www.twilio.com/docs/errors/14101",
"request_headers": null,
"request_method": "POST",
"request_url": "https://kev.inburke.com/zombo/zombo.php",
"request_variables": "ToCountry=US&ToState=CA&SmsMessageSid=SM1521fa559fb923c1ed64f56cd1bed8ef&NumMedia=0&ToCity=BRENTWOOD&FromZip=94514&SmsSid=SM1521fa559fb923c1ed64f56cd1bed8ef&FromState=CA&SmsStatus=received&FromCity=BRENTWOOD&Body=twilio-go+testing%21&FromCountry=US&To=%2B19253920364&ToZip=94514&NumSegments=1&MessageSid=SM1521fa559fb923c1ed64f56cd1bed8ef&AccountSid=AC58f1e8f2b1c6b88ca90a012a4be0c279&From=%2B19253920364&ApiVersion=2010-04-01",
"resource_sid": "SM1521fa559fb923c1ed64f56cd1bed8ef",
"response_body": "<Response><Sms>You can do anything at ZomboCom. Anything at all.</Sms></Response>",
"response_headers": "Transfer-Encoding=chunked&X-Cache=MISS+from+ip-172-18-20-243.ec2.internal&Server=cloudflare-nginx&X-Cache-Lookup=MISS+from+ip-172-18-20-243.ec2.internal%3A3128&Content-Type=text%2Fxml%3Bcharset%3Dutf-8&Date=Wed%2C+26+Oct+2016+01%3A11%3A13+GMT&CF-RAY=2f7a0875aaca21b0-EWR&X-Powered-By=PHP%2F5.6.16",
"service_sid": null,
"sid": "NO7e3853acc314b52d8b6babd04ede0a39",
"url": "https://monitor.twilio.com/v1/Alerts/NO7e3853acc314b52d8b6babd04ede0a39"
}
`)
var alert11200 = []byte(`
{
"account_sid": "AC58f1e8f2b1c6b88ca90a012a4be0c279",
"alert_text": "Msg&sourceComponent=12000&ErrorCode=11200&httpResponse=405&url=https%3A%2F%2Fkev.inburke.com%2Fzombo%2Fzombocom.mp3&LogLevel=ERROR",
"api_version": "2010-04-01",
"date_created": "2016-10-27T02:34:21Z",
"date_generated": "2016-10-27T02:34:21Z",
"date_updated": "2016-10-27T02:34:23Z",
"error_code": "11200",
"log_level": "error",
"more_info": "https://www.twilio.com/docs/errors/11200",
"request_headers": null,
"request_method": "POST",
"request_url": "https://kev.inburke.com/zombo/zombocom.mp3",
"request_variables": "Called=%2B19252717005&ToState=CA&CallerCountry=US&Direction=outbound-api&CallerState=CA&ToZip=94596&CallSid=CA6d27370cbbfb605521fe8800bb73f2d2&To=%2B19252717005&CallerZip=94514&ToCountry=US&ApiVersion=2010-04-01&CalledZip=94596&CalledCity=PLEASANTON&CallStatus=in-progress&From=%2B19253920364&AccountSid=AC58f1e8f2b1c6b88ca90a012a4be0c279&CalledCountry=US&CallerCity=BRENTWOOD&Caller=%2B19253920364&FromCountry=US&ToCity=PLEASANTON&FromCity=BRENTWOOD&CalledState=CA&FromZip=94514&FromState=CA",
"resource_sid": "CA6d27370cbbfb605521fe8800bb73f2d2",
"response_body": "<html>\r\n<head><title>405 Not Allowed</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>405 Not Allowed</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>",
"response_headers": "Transfer-Encoding=chunked&Server=cloudflare-nginx&CF-RAY=2f82bf9cb8102204-EWR&Set-Cookie=__cfduid%3Dd46f1cfd57d664c3038ae66f1c1de9e751477535661%3B+expires%3DFri%2C+27-Oct-17+02%3A34%3A21+GMT%3B+path%3D%2F%3B+domain%3D.inburke.com%3B+HttpOnly&Date=Thu%2C+27+Oct+2016+02%3A34%3A21+GMT&Content-Type=text%2Fhtml",
"service_sid": null,
"sid": "NO00ed1fb4aa449be2434d54ec8e492349",
"url": "https://monitor.twilio.com/v1/Alerts/NO00ed1fb4aa449be2434d54ec8e492349"
}
`)
// Note 4107 in response, I reported this to Twilio Support
var alert14107 = []byte(`
{
"account_sid": "AC58f1e8f2b1c6b88ca90a012a4be0c279",
"alert_text": "EmailNotification=true&LogLevel=ERROR&To=%2B19253920364&Msg=Reply+rate+limit+hit+replying+to+%2B14156305833+from+%2B19253920364+over+2014-02-05+14%3A06%3A59.0&ErrorCode=4107&From=%2B14156305833&RepliesSent=16",
"api_version": null,
"date_created": "2014-02-05T22:07:02Z",
"date_generated": "2014-02-05T22:07:02Z",
"date_updated": "2014-02-05T22:07:03Z",
"error_code": "4107",
"log_level": "error",
"more_info": "https://www.twilio.com/docs/errors/4107",
"request_headers": null,
"request_method": null,
"request_url": null,
"request_variables": null,
"resource_sid": "SM77db020c59a94d4f29ac4d43b8bef592",
"response_body": null,
"response_headers": null,
"service_sid": null,
"sid": "NOf57de2bb5cccd77c67288a7c433fa9d5",
"url": "https://monitor.twilio.com/v1/Alerts/NOf57de2bb5cccd77c67288a7c433fa9d5"
}
`)
var alertUnknown = []byte(`
{
"account_sid": "AC58f1e8f2b1c6b88ca90a012a4be0c279",
"alert_text": "",
"api_version": "2010-04-01",
"date_created": "2016-10-27T02:34:21Z",
"date_generated": "2016-10-27T02:34:21Z",
"date_updated": "2016-10-27T02:34:23Z",
"error_code": "235342434",
"log_level": "error",
"more_info": "https://www.twilio.com/docs/errors/93455",
"request_headers": null,
"request_method": "POST",
"request_url": "https://kev.inburke.com/zombo/zombocom.mp3",
"request_variables": "",
"resource_sid": "CA6d27370cbbfb605521fe8800bb73f2d2",
"response_body": "",
"response_headers": "",
"service_sid": null,
"sid": "NO00ed1fb4aa449be2434d54ec8e492349",
"url": "https://monitor.twilio.com/v1/Alerts/NO00ed1fb4aa449be2434d54ec8e492349"
}
`)
var alert13225 = []byte(`
{
"account_sid": "AC58f1e8f2b1c6b88ca90a012a4be0c279",
"alert_text": "phonenumber=%2B886225475050&LogLevel=WARN&Msg=forbidden+phone+number+&ErrorCode=13225",
"api_version": "2008-08-01",
"date_created": "2014-03-22T09:25:48Z",
"date_generated": "2014-03-22T09:25:48Z",
"date_updated": "2014-03-22T09:25:49Z",
"error_code": "13225",
"log_level": "warning",
"more_info": "https://www.twilio.com/docs/errors/13225",
"request_headers": null,
"request_method": "POST",
"request_url": "http://twilio-amaze-client.herokuapp.com/client/incoming",
"request_variables": "AccountSid=AC58f1e8f2b1c6b88ca90a012a4be0c279&ApplicationSid=AP7d6fd7b9a8894e36877dc2355da381c8&Caller=client%3Ajoey_ramone&CallStatus=ringing&Called=&To=&PhoneNumber=%2B886225475050&CallSid=CA2d4f6f887f3d24b5fdb945ff88ef8e41&From=client%3Ajoey_ramone&Direction=inbound&CallerID=%2B19252724527&ApiVersion=2010-04-01",
"resource_sid": "CA2d4f6f887f3d24b5fdb945ff88ef8e41",
"response_body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response><Dial callerId=\"+19252724527\"><Number>+886225475050</Number></Dial></Response>",
"response_headers": "Date=Sat%2C+22+Mar+2014+09%3A25%3A47+GMT&Content-Length=126&Content-Type=text%2Fhtml%3B+charset%3Dutf-8&Server=Werkzeug%2F0.9.1+Python%2F2.7.4",
"service_sid": null,
"sid": "NOd6b8b10848fdb8b50198fdad4c43b102",
"url": "https://monitor.twilio.com/v1/Alerts/NOd6b8b10848fdb8b50198fdad4c43b102"
}
`)
var alert13227 = []byte(`
{
"account_sid": "AC58f1e8f2b1c6b88ca90a012a4be0c279",
"alert_text": "phonenumber=%2B864008895080&LogLevel=WARN&Msg=not+authorized+to+call+&ErrorCode=13227",
"api_version": "2008-08-01",
"date_created": "2014-03-20T01:19:39Z",
"date_generated": "2014-03-20T01:19:39Z",
"date_updated": "2014-03-20T01:19:39Z",
"error_code": "13227",
"log_level": "warning",
"more_info": "https://www.twilio.com/docs/errors/13227",
"request_headers": null,
"request_method": "POST",
"request_url": "http://twilio-amaze-client.herokuapp.com/client/incoming",
"request_variables": "AccountSid=AC58f1e8f2b1c6b88ca90a012a4be0c279&ApplicationSid=AP7d6fd7b9a8894e36877dc2355da381c8&Caller=client%3Ajoey_ramone&CallStatus=ringing&Called=&To=&PhoneNumber=%2B864008895080&CallSid=CA36e37790f601cffb56008f5ea0ef8ab9&From=client%3Ajoey_ramone&Direction=inbound&CallerID=%2B19252724527&ApiVersion=2010-04-01",
"resource_sid": "CA36e37790f601cffb56008f5ea0ef8ab9",
"response_body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response><Dial callerId=\"+19252724527\"><Number>+864008895080</Number></Dial></Response>",
"response_headers": "Date=Thu%2C+20+Mar+2014+01%3A19%3A38+GMT&Content-Length=126&Content-Type=text%2Fhtml%3B+charset%3Dutf-8&Server=Werkzeug%2F0.9.1+Python%2F2.7.4",
"service_sid": null,
"sid": "NO5951001c254600e61c5ee189e0165680",
"url": "https://monitor.twilio.com/v1/Alerts/NO5951001c254600e61c5ee189e0165680"
}
`)