-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: reader is not async iterable at getReadableStreamAsUint8Array #73
Comments
Same here, same as #67 |
I also have the same problem using Superbase edge functions and browserless |
any updates on solving this issue? |
Im also running into this error after calling |
Was anyone able to solve this problem? I run into the same issue with Supabase Edge Functions. |
@vinch in my use case I could solve the issue by replacing my Basically my code changed from
to
I dont know if that is actually an overkill, but I could solve my problem and the solution was very easy. ps: Launching browserless instance was super easy (and for my usecase it was free) |
@julianolm Yeah that's what I did as well but I didn't use Browserless (too expensive for me) but instead ran my own Puppeteer instance on DigitalOcean. |
@vinch nailed it! Congrats |
I was able to use import * as Puppeteer from "npm:puppeteer";
const url = "https://example.com";
const BROWSER_PATH = "<path-to-chrome>/chrome";
const browser = await Puppeteer.launch({ headless: true, executablePath: BROWSER_PATH });
const page = await browser.newPage();
await page.goto(url, { waitUntil: "networkidle2" });
const pdf = await page.pdf({ format: "letter" });
await Deno.writeFile("output.pdf", pdf);
await page.screenshot({ path: "output.png" });
await browser.close(); It does produce a warning:
but, despite it, it does complete Don't know how critical the warning is? |
Deno info:
🐉 >deno info DENO_DIR location: /Users/mateuszflisikowski/Library/Caches/deno Remote modules cache: /Users/mateuszflisikowski/Library/Caches/deno/deps npm modules cache: /Users/mateuszflisikowski/Library/Caches/deno/npm Emitted modules cache: /Users/mateuszflisikowski/Library/Caches/deno/gen Language server registries cache: /Users/mateuszflisikowski/Library/Caches/deno/registries Origin storage: /Users/mateuszflisikowski/Library/Caches/deno/location_data
TypeError: reader is not async iterable
Supabase function code, that try to run.
The text was updated successfully, but these errors were encountered: