getMe() function doesnt work
See original GitHub issueDescription
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
- create a new session
- 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:
- Created a year ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also couldn’t access the GetMe function, could have been useful to fix another issue.
This issue was closed because it has been inactive for 14 days since being marked as stale.