我一直无法从DELETE
发送puppeteer.await
请求
page.goto(url)
导致错误“网址为net :: ERR_ABORTED”。
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)
谢谢。