Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebookdl and facebookdlv2 error #94

Open
Xnuvers007 opened this issue Dec 21, 2023 · 1 comment
Open

facebookdl and facebookdlv2 error #94

Xnuvers007 opened this issue Dec 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Xnuvers007
Copy link

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
@BochilGaming BochilGaming added the bug Something isn't working label Jan 21, 2024
@Xnuvers007
Copy link
Author

@BochilGaming Min tolong update package Npm nya, terimakasih.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants