Spaces:
Paused
Paused
Upload 14 files
Browse files
src/lightweight-client.js
CHANGED
|
@@ -239,7 +239,6 @@ async function streamNotionResponse(notionRequestBody) {
|
|
| 239 |
let responseReceived = false;
|
| 240 |
|
| 241 |
try {
|
| 242 |
-
const notionApiUrl = getNotionApiUrl(currentCookieData.userId);
|
| 243 |
const notionCookie = cookieManager.getCookieString(currentCookieData.userId);
|
| 244 |
|
| 245 |
// 配置 got-scraping
|
|
@@ -265,7 +264,7 @@ async function streamNotionResponse(notionRequestBody) {
|
|
| 265 |
logger.info(`使用代理: ${PROXY_URL}`);
|
| 266 |
}
|
| 267 |
|
| 268 |
-
const responseStream = gotScraping(
|
| 269 |
|
| 270 |
// 监听流事件
|
| 271 |
fetchNotionResponse(stream, responseStream, timeoutId);
|
|
|
|
| 239 |
let responseReceived = false;
|
| 240 |
|
| 241 |
try {
|
|
|
|
| 242 |
const notionCookie = cookieManager.getCookieString(currentCookieData.userId);
|
| 243 |
|
| 244 |
// 配置 got-scraping
|
|
|
|
| 264 |
logger.info(`使用代理: ${PROXY_URL}`);
|
| 265 |
}
|
| 266 |
|
| 267 |
+
const responseStream = gotScraping(NOTION_API_URL, options);
|
| 268 |
|
| 269 |
// 监听流事件
|
| 270 |
fetchNotionResponse(stream, responseStream, timeoutId);
|