-
Notifications
You must be signed in to change notification settings - Fork 86
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
Get接口,浏览器能直接访问调用,但工具不行,疑似URL编码问题 #113
Comments
Welcome to submit an issue for x-crawl for the first time |
建议搭配 TypeScript 使用 |
请问我如何实现zip文件的解压,因为工具是ECMAScript 模块,试了adm-zip,没法使用,因为它是CommonJS 模块 |
@guicaiyue ESM 可以导入 CJS,现在 Node.js 22 版本的 CJS 也能导入 ESM 了 |
还是没做到,我现在是在青龙面板里面常用使用这个脚本,每个脚本都是单个ts文件,所以无法同时支持ECMAScript 与CommonJS 模块吧,但 fs 也是能用,nodejs的CJS 和 ESM 割裂性也太强烈了
|
@guicaiyue 有什么报错信息不 |
@guicaiyue 把 node_modules 删了重新下载试试,或者试试其他的解压库 |
Bug 预期
预期:浏览器可直接调用成功
实际:接口调用失败,因为无法识别url
最小可重复的例子
报错信息
TypeError: Invalid URL
x-crawl 版本
x-crawl 10.0.1
Node 版本
v20.12.1
包管理器
pnpm
包管理器版本
8.3.1
The text was updated successfully, but these errors were encountered: