playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Bug]: `[DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized`

Open Skn0tt opened this issue 6 months ago • 1 comments

Version

tot

Steps to reproduce

Use Node.js 24, run npx playwright install

Expected behavior

no deprecation warnings

Actual behavior

(node:29094) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)

Additional context

We use url.parse in src/server/utils/network.ts, but changing those isn't enough.

Environment

System:
    OS: macOS 15.5
    CPU: (12) arm64 Apple M3 Pro
    Memory: 197.59 MB / 18.00 GB
  Binaries:
    Node: 24.2.0 - ~/.local/state/fnm_multishells/1424_1750421433339/bin/node
    npm: 11.3.0 - ~/.local/state/fnm_multishells/1424_1750421433339/bin/npm
    pnpm: 10.6.5 - /opt/homebrew/bin/pnpm
  IDEs:
    VSCode: 1.101.1 - /opt/homebrew/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash

Skn0tt avatar Jun 23 '25 07:06 Skn0tt

node js 24 related issue I think same happened for me in next js application
I switched to node 20

aykhanhuseyn avatar Jun 24 '25 15:06 aykhanhuseyn

folding into https://github.com/microsoft/playwright/issues/36404

Skn0tt avatar Jun 30 '25 14:06 Skn0tt