fix(scrapeURL/playwright): JSON body fix
This commit is contained in:
@@ -13,12 +13,12 @@ export async function scrapeURLWithPlaywright(meta: Meta): Promise<EngineScrapeR
|
|||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: {
|
||||||
url: meta.url,
|
url: meta.url,
|
||||||
wait_after_load: meta.options.waitFor,
|
wait_after_load: meta.options.waitFor,
|
||||||
timeout,
|
timeout,
|
||||||
headers: meta.options.headers,
|
headers: meta.options.headers,
|
||||||
}),
|
},
|
||||||
method: "POST",
|
method: "POST",
|
||||||
logger: meta.logger.child("scrapeURLWithPlaywright/robustFetch"),
|
logger: meta.logger.child("scrapeURLWithPlaywright/robustFetch"),
|
||||||
schema: z.object({
|
schema: z.object({
|
||||||
|
|||||||
Reference in New Issue
Block a user