File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
functions/zoom-meeting-webhook-handler Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,18 @@ const handler = async function (event, context) {
100100 case EVENT_PARTICIPANT_LEFT :
101101 console . log ( 'CALLING handle-participant-joined-left-background' )
102102
103- response = await fetch ( `${ APP_HOST } /handle-participant-joined-left-background` , {
104- method : 'POST' ,
105- body : event . body ,
106- } ) ;
103+ try {
104+ response = await fetch ( `${ APP_HOST } /handle-participant-joined-left-background` , {
105+ method : 'POST' ,
106+ body : event . body ,
107+ } ) ;
108+
109+ if ( ! response . ok ) {
110+ console . error ( `Error: ${ response . status } ${ response . statusText } ` ) ;
111+ }
112+ } catch ( error ) {
113+ console . error ( error ) ;
114+ }
107115
108116 console . log ( 'EXITING IMMEDIATELY FROM zoom-meeting-webhook-handler' )
109117
You can’t perform that action at this time.
0 commit comments