Recommended Free Tools
ERR_NAME_RESOLUTION_FAILED and getaddrinfo ENOTFOUND usually mean your deployed function cannot resolve or reach the hostname Puppeteer is trying to open. First check the function’s current outbound-network access and project configuration; then check DNS, runtime and browser packaging. Installing Chrome or changing Puppeteer’s cache can fix deployment problems, but it cannot grant a function permission to reach an external site.
What the error means
Puppeteer asks Chrome to navigate to a URL, and Chrome must resolve that URL’s hostname before it can connect. ERR_NAME_RESOLUTION_FAILED is a browser navigation error; Node’s getaddrinfo ENOTFOUND is a DNS lookup error. Both point to a failure to resolve or reach a hostname from the deployed environment—not, by themselves, proof that the target website is down.
The distinction matters because a Firebase function can run successfully for requests that do not navigate anywhere, yet fail as soon as Puppeteer opens an external URL. That pattern was reported for an external Wikipedia page in a 2018 Stack Overflow question. A related report described the error for Google and attributed it to an outbound-network restriction. These are historical reports, not a guarantee of current Firebase plan behavior.
Read the full error before changing code
Record the exact error, hostname, port, and whether it occurs on every request or intermittently. A failed lookup for a public domain is a different lead from a timeout after the hostname resolves, a browser executable error, or a blank page. Avoid treating every navigation failure as a Puppeteer installation issue.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Check outbound access first
Check the current billing or plan status, Cloud Functions generation, deployed region, and any VPC, firewall, or egress configuration affecting the function. Historical accepted answers associated Firebase’s free Spark plan with restrictions on outbound connections to non-Google hosts. One quoted the limitation as “Outbound networking: Google services only”; another reported that enabling billing resolved the author’s Puppeteer request. Because those reports date from 2018 and 2019, verify the live rules for your project rather than assuming that the same plan name or restriction applies today.
Billing and code changes solve different failure classes. If the project’s current network policy blocks the destination, changing Puppeteer’s cache or reinstalling Chrome will not make that destination reachable. Conversely, if outbound access is allowed, changing plans is not a substitute for fixing a missing browser or a bad deployment.
Compare a Google-controlled host with the failing host
From the deployed function, test a hostname you expect to be reachable under the project’s current policy, then test the failing hostname. If the first succeeds and the second fails, investigate external egress authorization, DNS policy, VPC routing, or firewall rules. If both fail, widen the check to the function’s general networking configuration and DNS availability. Do not use a successful local-machine test as evidence that the deployed runtime has the same network path.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Diagnose from the deployed function
Reproduce the failure in the deployed environment and log enough information to distinguish DNS from later connection or browser failures. This small Node.js diagnostic uses built-in modules; it does not require Puppeteer and can help isolate whether the hostname resolves and whether an HTTPS request can be made.
import dns from 'node:dns/promises';
import https from 'node:https';
const hostname = 'www.wikipedia.org';
try {
const addresses = await dns.lookup(hostname, { all: true });
console.log('DNS lookup succeeded:', hostname, addresses);
const request = https.get(`https://${hostname}/`, (response) => {
console.log('HTTPS response:', response.statusCode);
response.resume();
});
request.setTimeout(15000, () => {
request.destroy(new Error('HTTPS request timed out'));
});
request.on('error', (error) => {
console.error('HTTPS request failed:', error.code, error.message);
});
} catch (error) {
console.error('DNS lookup failed:', error.code, error.message);
}
Run this as a temporary diagnostic in the same deployed function, region, and network configuration as the Puppeteer job. Remove or limit diagnostic logging afterward; do not log secrets, authorization headers, or sensitive URLs. A successful lookup followed by a failed HTTPS request shifts attention from DNS resolution to connection or egress policy. A DNS failure directs attention to hostname spelling, resolver behavior, and project networking.
Fix Puppeteer browser packaging separately
Puppeteer is a JavaScript library for controlling Chrome or Firefox through DevTools Protocol or WebDriver BiDi. Installing the puppeteer package normally downloads a compatible Chrome during installation. A deployment that omits that browser can fail even when outbound networking is correctly configured.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Puppeteer’s Cloud Functions troubleshooting guidance recommends placing its browser cache under node_modules/.puppeteer_cache. Cloud Functions caches node_modules; if the dependency cache is reused, the Puppeteer installation process may not run again to fetch the browser. Configure the cache in Puppeteer’s configuration file:
import { join } from 'node:path';
export default {
cacheDirectory: join(import.meta.dirname, 'node_modules', '.puppeteer_cache'),
};
Use the configuration format supported by your project’s Node.js module setup. The example uses ES modules. If your deployment blocks package install scripts, allow the Puppeteer install script or run the documented browser installation command, npx puppeteer browsers install, as part of the build/deployment workflow, then redeploy. These steps address browser download and packaging failures; they do not bypass an outbound-network restriction imposed on the running function.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsSeparate installation-time access from runtime access
There are two different points at which network access may matter: during installation or build, when Puppeteer obtains its browser, and at runtime, when Chrome navigates to the requested website. A browser-download failure points to the first; ENOTFOUND for the target website points to runtime hostname resolution. Fix and verify each stage independently.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Check Node.js runtime and deployment state
If the function uses an old Node.js runtime or dependencies no longer match the deployed runtime, follow Firebase’s runtime-upgrade workflow: update the engines field in package.json, use the latest Firebase CLI, optionally test with the Local Emulator Suite, and redeploy all functions. Apply this when a runtime mismatch is plausible; it is not a networking fix on its own.
{
"engines": {
"node": "YOUR_SUPPORTED_NODE_VERSION"
}
}
Replace the value with a Node.js version supported by your Firebase Functions setup, rather than copying a version from an old example. Confirm which runtime the deployed function actually uses, and verify that the redeployment completed. Local emulator success is useful for code and dependency checks, but it does not establish that production egress, DNS, region, or VPC settings are identical.
Reduce intermittent DNS and connection pressure
If failures occur only under load or after repeated captures, investigate connection and DNS quotas as well as destination access. Firebase’s networking guidance identifies reducing CPU spent establishing outbound connections and reducing the chance of exhausting connection or DNS quotas as networking optimization goals.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
- Reuse persistent HTTP connections where practical rather than repeatedly creating short-lived outbound connections.
- Avoid launching a fresh browser or network stack for every operation if your workload can safely reuse one.
- Monitor function logs and the relevant quota dashboards for spikes, throttling, or exhausted resources.
- Keep per-request browser and connection lifetimes bounded so failed navigations do not consume resources indefinitely.
Connection reuse can reduce recurring resource pressure; it cannot override a policy that blocks external egress altogether.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Use this troubleshooting sequence
- Reproduce and capture the details. Test a known external hostname and record the complete error, hostname, port, function region, and timestamp. Determine whether the error is consistent or intermittent.
- Check the project’s current network rules. Verify billing or plan status, Cloud Functions generation, region, VPC and egress settings, firewall policy, and relevant quotas. Treat historical Spark-plan reports as clues, not current policy documentation.
- Test DNS and HTTPS from the deployed runtime. Use a simple diagnostic without Puppeteer. Compare the failing host with a Google-controlled endpoint that should be reachable under the project’s current policy.
- Verify the runtime and redeploy. Check the
enginessetting, use the current Firebase CLI, optionally test with the emulator, and redeploy all functions when making a runtime upgrade. - Verify the browser is packaged. Confirm Puppeteer’s compatible browser was installed, configure the cache under
node_modules/.puppeteer_cache, and rerun the browser installation step if install scripts were blocked. - Investigate intermittent failures at scale. Review DNS and connection quotas, reuse connections where practical, and monitor logs for patterns that point to resource pressure.
- Escalate with evidence if unresolved. Include the exact hostname and error, region, Functions generation, plan or billing status, network configuration, and timestamps. This lets a support engineer distinguish a policy issue from DNS, quota, or packaging problems.
Common symptoms, causes, and fixes
| Symptom | Likely class of problem | Next check |
|---|---|---|
ENOTFOUND or ERR_NAME_RESOLUTION_FAILED for an external host in production |
DNS resolution or outbound access | Test DNS and HTTPS from the deployed runtime; verify current project egress policy and VPC/firewall configuration. |
| Function runs, but navigation to an external site fails | Runtime egress may differ from local development; historical Firebase reports cite plan restrictions | Check current billing/plan behavior for the project’s generation and region before changing code. |
| Puppeteer reports that Chrome or its executable is missing | Browser installation or deployment packaging | Confirm the install step ran, set the documented cache directory, and install the browser before redeploying. |
| Failure appears after a runtime or dependency change | Runtime/deployment mismatch | Verify the deployed Node.js version and engines field, update the CLI, and redeploy. |
| Failures are occasional and increase with workload | Connection or DNS quota pressure is possible | Inspect logs and quotas; reduce connection churn and reuse persistent connections where appropriate. |
Or skip the browser setup
If your goal is simply to obtain a website screenshot, rather than run custom browser automation inside Firebase, ScreenshotNeo offers a screenshot API and MCP server. A single GET request can return an image or PDF. For example, this cURL request saves a WebP screenshot of Stripe; see the ScreenshotNeo API documentation for parameters and response details.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo removes cookie and consent banners, newsletter popups, and chat widgets before capture; each cleanup step can be disabled. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents using Claude, Cursor, or another MCP client. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.
This is an alternative for screenshot capture, not a way to run arbitrary Puppeteer scripts or to change a Firebase function’s egress policy. See ScreenshotNeo, or sign up for 1,000 free screenshots a month with no card.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Conclusion
Start with the deployed function’s network path: verify current project egress rules and test DNS and HTTPS from the runtime. Then check Puppeteer’s browser installation, cache configuration, and Node.js deployment state. Treat access, packaging, runtime compatibility, and quota pressure as separate failure classes so that each change addresses the actual cause.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

