scraper icon indicating copy to clipboard operation
scraper copied to clipboard

facebookdl and facebookdlv2 error

Open Xnuvers007 opened this issue 1 year ago • 1 comments

error:

/node_modules/zod/lib/index.mjs:538 const error = new ZodError(ctx.common.issues); ^

ZodError: [ { "code": "invalid_type", "expected": "number", "received": "string", "path": [ "duration" ], "message": "Expected number, received string" } ] at get error [as error] (/node_modules/zod/lib/index.mjs:538:31) at ZodObject.parse (/node_modules/zod/lib/index.mjs:638:22) at facebookdl (/node_modules/@bochilteam/scraper-sosmed/lib/esm/src/facebook.js:48:37) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file /index.js:14:14 { issues: [ { code: 'invalid_type', expected: 'number', received: 'string', path: [ 'duration' ], message: 'Expected number, received string' } ], addIssue: [Function (anonymous)], addIssues: [Function (anonymous)], errors: [ { code: 'invalid_type', expected: 'number', received: 'string', path: [ 'duration' ], message: 'Expected number, received string' } ] }

Node.js v20.0.0

import { facebookdl, facebookdlv2 } from '@bochilteam/scraper-sosmed'

const data = await facebookdl('https://www.facebook.com/reel/841811270967738')
console.log(data) // JSON
const data2 = await facebookdlv2('https://www.facebook.com/reel/841811270967738')
console.log(data2) // JSON

Xnuvers007 avatar Dec 21 '23 19:12 Xnuvers007

@BochilGaming Min tolong update package Npm nya, terimakasih.

Xnuvers007 avatar Jan 27 '24 17:01 Xnuvers007

Try to use @bochilteam/scraper 5.0.1 version

BochilGaming avatar Jul 18 '24 04:07 BochilGaming