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

o.StatusStore.find is not a function #2115

Closed
antirek opened this issue Jun 25, 2024 · 1 comment
Closed

o.StatusStore.find is not a function #2115

antirek opened this issue Jun 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@antirek
Copy link

antirek commented Jun 25, 2024

Description

try execute await client.getStatus('[email protected]');
receive error

Environment

  • WPPConnect version(s): 1.32.3
  • WA-JS version(s): 3.4.1
  • Browser: Chrome 124
  • OS: Ubuntu 20.04
  • Node version: Node 20.18
  • WhatsApp version: 2.3000.1014442065-alpha
  • MultiDevice (BETA): yes

Error

error contactStatus Error: o.StatusStore.find is not a function
     at /usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
     at step (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
     at Object.next (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
     at fulfilled (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
 JS Stack: TypeError: o.StatusStore.find is not a function
     at t.getStatus (/usr/src/app/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:225880)
 Function: function (contactId) { return __awaiter(_this, void 0, void 0, function () {
                             var status;
                             return __generator(this, function (_a) {
                                 switch (_a.label) {
                                     case 0: return [4 /*yield*/, WPP.contact.getStatus(contactId)];
                                     case 1:
                                         status = _a.sent();
                                         return [2 /*return*/, {
                                                 id: contactId,
                                                 status: (status === null || status === void 0 ? void 0 : status.status) || status,
                                             }];
                                 }
                             });
                         }); }
@antirek antirek added bug Something isn't working needs triage labels Jun 25, 2024
@icleitoncosta icleitoncosta transferred this issue from wppconnect-team/wppconnect Jul 14, 2024
Copy link

@antirek, ⭐3 XP earned, 🏆First Issue Created completed, 💪Level 1 achieved!
Contribute more to raise your XP/Level, complete challenges for extra achievements! [Sign up for personal dashboard]

icon

@icleitoncosta icleitoncosta added good first issue Good for newcomers help wanted Extra attention is needed and removed needs triage labels Jul 14, 2024
@icleitoncosta icleitoncosta self-assigned this Jul 14, 2024
qeternity pushed a commit to qeternity/wa-js that referenced this issue Aug 20, 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 good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants