url - net::ERR_ABORTED 在 page.goto(url) XML
问题描述
我一直卡在发送DELETE
请求puppeteer.await
page.goto(url)
导致错误“net::ERR_ABORTED at url”。
url 转发到 XML 文件。
我POST
用同样的方法成功了,但没有用DELETE
. 有什么问题?你能给我完整的DELETE
请求例子吗?
× 删除 GPD 用户 (5275ms)
● 访问 SCIM › 删除 GPD 用户
net::ERR_ABORTED at url (https://test.dev.com:1234/sandbox-s/users/auth0%7C12345)
page.on('request', interceptedRequest => { var options = { 'method': 'DELETE', 'headers': { 'content-type': 'application/json', 'accept': 'application/json', 'cache-control': 'no-cache', 'authorization': 'Bearer ' + GPD_token}, 'timeout': 10000 }; interceptedRequest.continue(options); }); const response = await page.goto(url);
at navigate (node_modules/puppeteer/lib/FrameManager.js:121:37)
-- ASYNC --
at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:110:27)
at Page.goto (node_modules/puppeteer/lib/Page.js:629:49)
at Page.<anonymous> (node_modules/puppeteer/lib/helper.js:111:23)
at Object.goto [as deleteUser] (src/pages/gpd/scimPage.js:105:33)
at Object.deleteUser (src/specs/gpd/scim/visit.spec.js:61:37)
谢谢。
解决方案
推荐阅读
- c++ - 带有重载转换函数的 std::transform
- google-kubernetes-engine - 升级后 GKE 集群节点未解封
- android - GradientDrawable.setCornerRadii 的剪辑不起作用
- ruby-on-rails - Azure 应用服务上的 Rails:“找不到‘捆绑程序’(2.1.4)”
- mysql - 无法对具有相同 item_hsn 的字段进行分组,并使用 group by sql 语句对其数量求和
- vue.js - Vue JS:当组件在视口中可见时如何异步加载和渲染组件
- reactjs - 最佳 React Router 登录实践
- javascript - html上的轮播图像未加载
- python - 而不是“休息”
- c# - 短跑运动问题