Salut à tous,
Je poste en français (WeWeb étant une boîte française ), mais je mettrai la traduction anglaise en dessous.
Je rencontre un problème avec l’action “Invoke an Edge Function” dans WeWeb : elle ne fonctionne pas dans un de mes workflows. Pour contourner le problème, je suis passé par le plugin REST API en appelant directement mon endpoint Supabase Edge Function (via l’URL), et tout fonctionnait parfaitement lors des premiers tests.
Cependant, après avoir fermé ma session WeWeb et l’avoir rouverte le lendemain, tout a cessé de fonctionner :
• Mes collections Supabase ne se chargeaient plus.
• Mon appel REST API fonctionnait encore, mais sans les données des collections Supabase, cela bloque mon flux de travail.
Le problème majeur, c’est que j’utilise cet appel Edge Function pour déclencher des paiements Stripe côté serveur, donc actuellement aucun paiement ne peut être déclenché depuis mon app.
Pour info :
• Les Edge Functions nécessitent la vérification JWT côté Supabase, mais je n’ai pas trouvé de méthode stable pour injecter dynamiquement le JWT dans l’appel REST API dans WeWeb.
• J’ai besoin d’appeler cette Edge Function tout en maintenant mes collections Supabase fonctionnelles dans WeWeb, ce qui ne semble pas compatible actuellement.
Si quelqu’un a une méthode stable pour appeler une Edge Function tout en conservant le fonctionnement des collections Supabase dans WeWeb, ou si WeWeb a une solution ou un contournement officiel, je suis très preneur !
Merci d’avance pour votre aide
Hi everyone,
Posting in English below for the community.
I’m facing an issue with the “Invoke an Edge Function” action in WeWeb: it does not work within one of my workflows. To work around this, I used the REST API plugin to call my Supabase Edge Function endpoint directly (via URL), and everything worked fine during initial tests.
However, after closing my WeWeb session and reopening it the next day, everything stopped working:
• My Supabase collections no longer load.
• My REST API call still works, but without the Supabase collections data, my workflow is blocked.
The main problem is that I use this Edge Function call to trigger Stripe payments server-side, so currently, no payments can be triggered from my app.
For context:
• Supabase Edge Functions require JWT verification, but I haven’t found a stable way to dynamically inject the JWT into the REST API call within WeWeb.
• I need to call this Edge Function while keeping Supabase collections functional inside WeWeb, which currently seems incompatible.
If anyone has a stable method to call an Edge Function while maintaining Supabase collections working in WeWeb, or if WeWeb has an official workaround or solution, I’d greatly appreciate your help!
Thanks in advance