twitter-direct-url icon indicating copy to clipboard operation
twitter-direct-url copied to clipboard

Code Error

Open Stalker-moment opened this issue 1 year ago • 1 comments

node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".] { code: 'ERR_UNHANDLED_REJECTION' }

Stalker-moment avatar Aug 06 '23 06:08 Stalker-moment

Try this

twitterGetUrl(url) .then(data => { console.log(data); }) .catch(error => { console.error('Error:', error); });

egoserg avatar Sep 29 '23 00:09 egoserg