Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 15th Oct 2015, 12:07 PM   #1
Warrior Member
 
Join Date: 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Strange Node.js HTTP issue
Share on: 
fb share twitter share gplus share more share

Hello all,

Recently I programmed a javascript script that allows me to automate my following on Twitter. I did not use the Twitter API, because I apparently did too many write transactions on it. Anyways, what I did use was the cookies/headers from the developer tools and such which worked out great for a few months. However, yesterday, it gave me a 403 forbidden error from Twitter.

It is not a ban on my account or anything because I can still follow people etc. on my phone and computer. However, when I try to use the script (on my computer) it returns the error. I also tried this on a few other accounts to confirm it was the script. They also worked fine on my computer and phone, but the script returned the same error.

Also as a heads up I was not trying to abuse any rules or anything with the script (however twitter may have viewed it that way possibly).

I am using the request npm on node js to send the requests to twitter's servers. Is it possible that the request npm sends something to the server that traces it back to a node js program?

Thank you, really stumped on this one...

Resolved this issue: I missed one of the headers that the browser uses to communicate with twitters servers. If anyone else runs into this issue programming a script for twitter. Double check you have ALL headers!

Last edited on 15th Oct 2015 at 06:54 PM. Reason: Resolved
patthehat033 is offline  
Unread 15th Oct 2015, 01:58 PM   #2
Warrior Member
 
Join Date: 2015
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default
Re: Strange Node.js HTTP issue
Share on: 
fb share twitter share gplus share more share

Hey

Twitter probably updated their code to prevent bots, so your script stopped working.
Stormhashe is offline  
Unread 15th Oct 2015, 04:59 PM   #3
Warrior Member
 
Join Date: 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Strange Node.js HTTP issue
Share on: 
fb share twitter share gplus share more share

Originally Posted by Stormhashe View Post

Hey

Twitter probably updated their code to prevent bots, so your script stopped working.
I definitely agree with that. Do you have any ideas on how they figured out I am using Node js?
patthehat033 is offline  
Unread 15th Oct 2015, 06:27 PM   #4
Warrior Member
 
Join Date: 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Strange Node.js HTTP issue
Share on: 
fb share twitter share gplus share more share

So I tried a test on hurl.it and noticed that the user-agent contains runscope at the beginning even if I customize it, and of course I was returned 403 Forbidden on there as well. Does node do the same thing?
patthehat033 is offline  
Closed Thread


Bookmarks

Tags
http, issue, nodejs, strange


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:25 PM.