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.

Unable To Send Direct Message.

See original GitHub issue

Thanks for your awesome work.

I have been unable to send direct messages while following the reference document.

Whenever I run

let parameters ={id:"1322838158258720769", data:"helloworld"}
twitterClient.directMessages.directMessagesEventsNewMessageCreate(parameters)
.catch(err => { console.log(err) })

the library keeps returning { statusCode: 415, data: '' }.

What am I doing wrong?

My current version is "twitter-api-client": "^1.2.0"

Thank You Very Much

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
SimonHoibergcommented, Jan 30, 2021

Fixed in version 1.2.9

1reaction
SimonHoibergcommented, Nov 8, 2020

Hi, @teezzan. Thanks for creating this issue.

Your code looks correct, so it’s likely to be a bug. I’ll look into this asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I send or receive direct messages on Instagram?
The last reason as to why your Instagram DMs won't send is because the servers Instagram used to host the Instagram app is...
Read more >
Why Can't I Send a DM on Instagram? - ITGeared
If you cannot send DMs through Instagram, the reasons could include lousy internet connection, Instagram update issues, blocking or privacy ...
Read more >
Twitter Direct Message FAQ – DMs - Twitter Help Center
How is someone I don't follow able to send me a Direct Message? · Locate the conversation from the account, and click or...
Read more >
2022) Instagram Direct Messages (DMs) Not Working? (Solved
If you cannot use the message option on Instagram and cannot send messages, first check your internet connection. · When you are having...
Read more >
Why isn't my DM going through? - Discord Support
If your direct message was unable to be sent, you will receive an error message from Clyde that looks something like this:.
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