edge-runtime icon indicating copy to clipboard operation
edge-runtime copied to clipboard

Official Supabase Puppeteer example does not work locally

Open StefanVDWeide opened this issue 3 years ago • 2 comments

Bug report

Describe the bug

I'm trying to follow the official puppeteer example but Puppeteer requires Deno to be run with the --unstable flag. See the documentation here:

deno run -A --unstable example.js

However, it seems that the Supabase CLI does not support passing additional parameters so running the official example locally does not work.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Init a new Supabase project
  2. Follow the steps as described here: official puppeteer example
  3. Run the example locally using the supabase functions serve command
  4. See error

Expected behavior

For the example to work locally so that it can be tested before deploying.

StefanVDWeide avatar Dec 29 '22 11:12 StefanVDWeide

Transferring to edge runtime repo since @supabase/edge-functions is maintaining the example code.

sweatybridge avatar Nov 09 '23 03:11 sweatybridge

https://github.com/supabase/edge-runtime/assets/60560109/e22f5f10-9846-4715-b969-7490b950041e

Hey there!

So I tested this and I am getting some errors very sporadicly, like it runs sucessfully and then a few requests later it fails again, it seems like it might be an issue with the connection to browserless because nothing seems pointing out to an error from the edge runtime.

Let me know if you're also running into a similar sceneario.

Attaching the video for context ^^

andreespirela avatar Jan 15 '24 20:01 andreespirela