question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getMe() function doesnt work

See original GitHub issue

Description

I cant use the fucntion (getMe()), it reutrns an error

Environment

  • Venom version(s): [4.2.0]
  • Browser: [Chromium 102]
  • OS: [Windows 11]
  • Node version: [Node 16]

Steps to Reproduce

  1. create a new session
  2. add client.getMe() to the start function

Log Output

$ node venom.js
Unable to load the sleep module (no animations available)



 /\\\      /\\\ /\\\\\\\\\\  /\\\\\     /\\\    /\\\\\\\\    /\\\      \\\\
 \/\\\     /\\\ \/\\\_____/  \/\\\ \\\  \/\\\  /\\\_____/\\\ \/\\\ \\ \\ \\\
   \/\\\   /\\\  \/\\\        \/\\\ /\\\ \/\\\ \/\\\    \/\\\ \/\\\  \\\  \\\
    \/\\\  /\\\   \/\\\\\\\\\\ \/\\\  /\\\ /\\\ \/\\\    \/\\\ \/\\\  \\\  \\\
      \/\\\ \\\    \/\\\_____/  \/\\\ \/\\\ /\\\ \/\\\    \/\\\ \/\\\  \\\  \\\
       \/\\\\\\     \/\\\        \/\\\ \ /\\\ \\\ \/\\\    \/\\\ \/\\\  \\\  \\\
        \/_/\\\      \/\\\\\\\\\\ \/\\\  \/_\\\\\\ \/_/\\\\\\\\\  \/\\\  \\\  \\\
          \/__/       \/________/  \/_/    \/____/    \/_______/   \/_/ \/_/ \/_/



info:     https://orkestral.io - official site!

info:     [session-name] Waiting... checking the browser...
info:     [session-name] Browser successfully opened
info:     [session-name] checking headless...
info:     [session-name] headless option is disabled, browser visible
info:     [session-name] Checking page...
info:     [session-name] Page successfully accessed
✓ [instance: session-name]: Connected
TypeError: client.getMe is not a function
    at start (C:\Users\ALyas\Desktop\Projects\TESTING STUFF\Node.js.env\venom.js:19:12)
    at C:\Users\ALyas\Desktop\Projects\TESTING STUFF\Node.js.env\venom.js:13:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Code

`// Supports ES6 // import { create, Whatsapp } from ‘venom-bot’; const venom = require(‘venom-bot’);

venom .create({ session: ‘session-name’, //name of session multidevice: true // for version not multidevice use false.(default: true) }) .then((client) => start(client)) .catch((erro) => { console.log(erro); });

function start(client) { client.getMe() .then(res => console.log(res)) .catch(err => console.error(“ERROR”, err)) }`

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
luigiradanocommented, Jun 28, 2022

I also couldn’t access the GetMe function, could have been useful to fix another issue.

0reactions
github-actions[bot]commented, Jul 20, 2022

This issue was closed because it has been inactive for 14 days since being marked as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why JavaScript getTime() is not a function? - Stack Overflow
I use this function because the Date.parse(string) (or new Date(string) ) method is implementation dependent, and the yyyy-MM-dd format will work on modern ......
Read more >
TypeError: date.getTime is not a function in JavaScript
The "date.getTime is not a function" error occurs when the getTime() method is called on a value that is not a date object....
Read more >
Date.prototype.getTime() - JavaScript - MDN Web Docs - Mozilla
The getTime() method returns the number of milliseconds since the epoch, which is defined as the midnight at the beginning of January 1,...
Read more >
[Solved] TypeError: date.getTime is not a function - ItsJavaScript
The TypeError: date.getTime is not a function occurs if we call a getTime() method on the object that is not of type Date...
Read more >
Excel Split Date and Time Easy Formula or Flash Fill
Get Time Value With Formula ... NOTE: If Flash Fill doesn't work, click the File tab at the top of Excel, then click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found