uncaught exception during edge function invocation