mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 14:45:59 +08:00
Merge pull request #394 from mendableai/nsc/small-fe-print
Log Fire-engine page errors
This commit is contained in:
commit
09bc2c7a9c
@ -72,6 +72,11 @@ export async function scrapWithFireEngine({
|
||||
);
|
||||
logParams.error_message = response.data?.pageError;
|
||||
logParams.response_code = response.data?.pageStatusCode;
|
||||
|
||||
if(response.data && response.data?.pageStatusCode !== 200) {
|
||||
console.error(`[Fire-Engine] Error fetching url: ${url} with status: ${response.status}`);
|
||||
}
|
||||
|
||||
return {
|
||||
html: "",
|
||||
screenshot: "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user