Skip to content

Commit 733b13a

Browse files
authored
add note on retries to readme (#10)
1 parent f4fe9d4 commit 733b13a

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ export const handleIncomingMessage = internalMutation({
174174
});
175175
```
176176

177+
If the `handleIncomingMessage` callback throws an error, the message will not be
178+
saved and the webhook will throw an error. Twilio
179+
[does not retry webhook requests](https://www.twilio.com/docs/usage/security/availability-reliability),
180+
but you can replay them manually from the Twilio "Error logs" console.
181+
177182
## Querying Messages
178183

179184
To list all the mssages, use the `list` method in your Convex function.

src/component/_generated/api.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export type Mounts = {
6363
num_segments: string;
6464
price: string | null;
6565
price_unit: string | null;
66+
rest?: any;
6667
sid: string;
6768
status: string;
6869
subresource_uris: { feedback?: string; media: string } | null;
@@ -91,6 +92,7 @@ export type Mounts = {
9192
num_segments: string;
9293
price: string | null;
9394
price_unit: string | null;
95+
rest?: any;
9496
sid: string;
9597
status: string;
9698
subresource_uris: { feedback?: string; media: string } | null;
@@ -119,6 +121,7 @@ export type Mounts = {
119121
num_segments: string;
120122
price: string | null;
121123
price_unit: string | null;
124+
rest?: any;
122125
sid: string;
123126
status: string;
124127
subresource_uris: { feedback?: string; media: string } | null;
@@ -147,6 +150,7 @@ export type Mounts = {
147150
num_segments: string;
148151
price: string | null;
149152
price_unit: string | null;
153+
rest?: any;
150154
sid: string;
151155
status: string;
152156
subresource_uris: { feedback?: string; media: string } | null;
@@ -180,6 +184,7 @@ export type Mounts = {
180184
num_segments: string;
181185
price: string | null;
182186
price_unit: string | null;
187+
rest?: any;
183188
sid: string;
184189
status: string;
185190
subresource_uris: { feedback?: string; media: string } | null;
@@ -208,6 +213,7 @@ export type Mounts = {
208213
num_segments: string;
209214
price: string | null;
210215
price_unit: string | null;
216+
rest?: any;
211217
sid: string;
212218
status: string;
213219
subresource_uris: { feedback?: string; media: string } | null;
@@ -236,6 +242,7 @@ export type Mounts = {
236242
num_segments: string;
237243
price: string | null;
238244
price_unit: string | null;
245+
rest?: any;
239246
sid: string;
240247
status: string;
241248
subresource_uris: { feedback?: string; media: string } | null;
@@ -264,6 +271,7 @@ export type Mounts = {
264271
num_segments: string;
265272
price: string | null;
266273
price_unit: string | null;
274+
rest?: any;
267275
sid: string;
268276
status: string;
269277
subresource_uris: { feedback?: string; media: string } | null;
@@ -292,6 +300,7 @@ export type Mounts = {
292300
num_segments: string;
293301
price: string | null;
294302
price_unit: string | null;
303+
rest?: any;
295304
sid: string;
296305
status: string;
297306
subresource_uris: { feedback?: string; media: string } | null;
@@ -335,4 +344,6 @@ export declare const internal: FilterApi<
335344
FunctionReference<any, "internal">
336345
>;
337346

347+
export declare const components: {};
348+
338349
/* prettier-ignore-end */

src/component/_generated/api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @module
1111
*/
1212

13-
import { anyApi } from "convex/server";
13+
import { anyApi, componentsGeneric } from "convex/server";
1414

1515
/**
1616
* A utility for referencing Convex functions in your app's API.
@@ -22,5 +22,6 @@ import { anyApi } from "convex/server";
2222
*/
2323
export const api = anyApi;
2424
export const internal = anyApi;
25+
export const components = componentsGeneric();
2526

2627
/* prettier-ignore-end */

src/component/_generated/server.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,4 @@ export type DatabaseReader = GenericDatabaseReader<DataModel>;
150150
*/
151151
export type DatabaseWriter = GenericDatabaseWriter<DataModel>;
152152

153-
export declare const components: {};
154-
155153
/* prettier-ignore-end */

src/component/_generated/server.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,4 @@ export const internalAction = internalActionGeneric;
9191
*/
9292
export const httpAction = httpActionGeneric;
9393

94-
export const components = componentsGeneric();
95-
9694
/* prettier-ignore-end */

0 commit comments

Comments
 (0)