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

Error: options is not defined for Image or Video story api #1787

Open
nzeakokosi7 opened this issue Apr 2, 2024 · 0 comments
Open

Error: options is not defined for Image or Video story api #1787

nzeakokosi7 opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@nzeakokosi7
Copy link

nzeakokosi7 commented Apr 2, 2024

Description

When I call the image or video story api I get that error

Environment

  • Wppconnect-server version(s): 2.4.1
  • Browser: [e.g. Chrome 87, Chromium 85]
  • OS: [e.g. OSX 10.13.4, Windows 10]
  • Node version: Node 20
  • WhatsApp version: : 2.24.6.77
  • MultiDevice (BETA): : Yes

Steps to Reproduce

  1. Call generate token
  2. Create session
  3. Call send image or video story api

Log Output

error: 2024-04-01T19:58:58.384Z options is not defined - Error: options is not defined
    at /Users/nzeakokosi7/Javascript Projects/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
    at step (/Users/nzeakokosi7/Javascript Projects/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
    at Object.next (/Users/nzeakokosi7/Javascript Projects/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
    at fulfilled (/Users/nzeakokosi7/Javascript Projects/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
JS Stack: ReferenceError: options is not defined
    at pptr:evaluate;%2FUsers%2Fnzeakokosi7%2FJavascript%20Projects%2Fwppconnect-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:58:68
    at pptr:evaluate;%2FUsers%2Fnzeakokosi7%2FJavascript%20Projects%2Fwppconnect-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:59:32
    at new Promise (<anonymous>)
    at anonymous (pptr:evaluate;%2FUsers%2Fnzeakokosi7%2FJavascript%20Projects%2Fwppconnect-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function (_a) {
                                var base64 = _a.base64;
                                WPP.status.sendVideoStatus(base64, options);

Additional context / Screenshot

image

Add any other context about the problem here. If applicable, add screenshots to help explain.

@nzeakokosi7 nzeakokosi7 added bug Something isn't working needs triage labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant