Closed fateh-sarfaraz closed 3 years ago
Have you changed your code at all or has your sid changed?
Same thing happening to me all of a sudden.
I don't understand why i am getting this error Few days back i could run textapp automatically using pytextnow_api but suddenly it's not working and i am unable to figure out the problem
Same thing happening to me all of a sudden.
I don't understand why i am getting this error Few days back i could run textapp automatically using pytextnow_api but suddenly it's not working and i am unable to figure out the problem
To be honest; text now may just be cracking down or changing the way they handle request authentications. Add something to your code to print out the connect.sid cookie for each request. If it isn't found or changes for each request then this package is most likely going to become blocked/obsolete I can't even do any testing nor log in normally because I keep getting hit with unsolvable captchas (you can have it right but it will still say you failed).
Alright I'll look into it and try and push a bug fix soon. It may takes some time because of the impending 2.0.0 update. I'm just going to make a smaller 1.1.8 patch soon.
Do you have a timeframe it will be out by? I'm really depending on it. Thanks for all the work you do on this, im infinitely grateful for people like you.
Alright I'll look into it and try and push a bug fix soon. It may takes some time because of the impending 2.0.0 update. I'm just going to make a smaller 1.1.8 patch soon.
@leogomezz4t What's the issue?
Any word? @leogomezz4t @SilverStrings024
Any word? @leogomezz4t @SilverStrings024
I asked him about it on the discord (now deleted because no one was working on anything nor talking about trying anything other than Aaron Jamt and I [EDIT: Made a new one to talk about new methods, hmu if you want to come discuss]) and he said it seemed as though they were updating the authentication methods so it's POSSIBLE the sid is not longer a valid method.
So, since I would assume you're using the main/stable branch something I could suggest is to clone the repo then update it to do a simple check on each request to make sure the connect.sid cookie value is the same and if it's not, update it. If that doesn't work then I was correct and they indeed updated their authentication methods to make the connect.sid cookie obsolete. Which means this package is no longer viable unless someone makes a new robot and obfuscates the code (REALLY well). Which, if someone did, would mean this package becomes nothing but a texting robot instead of an API package which would pretty much call for a refactor of the entire code base.
If I can find some free time, I'll see what I can do but since I was banned it's likely not gonna happen on my side. If you'd like to brainstorm on how we can bypass this with @aaronjamt and I, then let me know and I can give you an invite to the new server Tag me when you decide what you'd like to do. Good luck!
@SilverStrings024 I'm down to help out but I'm not the most experienced, I can definitely help tho. (After all I'm only 14 tryna piece together some code) Send the Discord link, let's see what we can do.
@SilverStrings024 I'm down to help out but I'm not the most experienced, I can definitely help tho. (After all I'm only 14 tryna piece together some code) Send the Discord link, let's see what we can do.
Alright, here you go. Talk with you there. https://discord.gg/sv3kBkQm
@SilverStrings024 I'd also like a discord link. The ones you've sent are invalid. I'm depending on this API for one of my projects and I've yet to find any alternatives that are similar to text-now.
So I did some testing and it looks like textnow.com now requires a _csrf cookie to send a message and perhaps other methods
@SilverStrings024 I'd also like a discord link. The ones you've sent are invalid. I'm depending on this API for one of my projects and I've yet to find any alternatives that are similar to text-now.
@leogomezz4t Have you figured it all out?
I think so but I'm still formatting all the new methods with the new cookie so there should be a patch soon. Keep in mind you will have to include the _csrf cookie in the Client constructor much like the sid cookie
Great! Notify us when it's ready, thanks! On Sep 10, 2021, 11:45 AM -0400, Leo Wu-Gomez @.***>, wrote:
I think so but I'm still formatting all the new methods with the new cookie so there should be a patch soon. Keep in mind you will have to include the _csrf cookie in the Client constructor much like the sid cookie —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
@SilverStrings024 I'm down to help out but I'm not the most experienced, I can definitely help tho. (After all I'm only 14 tryna piece together some code) Send the Discord link, let's see what we can do.
Alright, here you go. Talk with you there. https://discord.gg/sv3kBkQm
Hehe uh unban please im very sorry
@SilverStrings024 I'm down to help out but I'm not the most experienced, I can definitely help tho. (After all I'm only 14 tryna piece together some code) Send the Discord link, let's see what we can do.
Alright, here you go. Talk with you there. https://discord.gg/sv3kBkQm
Hehe uh unban please im very sorry
I didn't ban you but, if Aaron did, let me know what your username (or whatever discord calls it) is and I'll try to figure out how to unban you
Send another invite, this one's invalid. On Sep 13, 2021, 3:36 PM -0400, Matthew Amstutz @.***>, wrote:
@SilverStrings024 I'm down to help out but I'm not the most experienced, I can definitely help tho. (After all I'm only 14 tryna piece together some code) Send the Discord link, let's see what we can do. Alright, here you go. Talk with you there. https://discord.gg/sv3kBkQm Hehe uh unban please im very sorry I didn't ban you, if Aaron did I'll unban you. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
You left, he didn't ban you https://discord.gg/NYUx4xRzq2
Join the discord at the link above.
@SilverStrings024 no, I'm banned, just tried to join again and it didn't work.
@SilverStrings024 no, I'm banned, just tried to join again and it didn't work.
Then I need your username. Aaron said you only left so, let me get that I'll friend request you then unban you. Honestly not sure why he would do that though.
Viviotic#3929
thanks
Viviotic#3929
thanks
It said you don't accept friend requests.
Viviotic#3929
thanksIt said you don't accept friend requests.
Try now please.
Viviotic#3929
thanksIt said you don't accept friend requests.
Try now please.
Request sent. When I see you've accepted I'll get you back in.
Alr looks like the request also requires a csrf_token header to work
I don't know how to find the header without first sending a message in textnow.com. If anyone has an idea or wants to help then post on this thread
I think I got it working and will submit a PR later today. I've only tested it for sending a couple SMS. Some of the changes might need to be propagated to the other methods.
I think I got it working and will submit a PR later today. I've only tested it for sending a couple SMS. Some of the changes might need to be propagated to the other methods.
That's great to hear, stay in touch on this thread please!! Much appreciated.
Great thanks!
@ovr-hit The pull request wunter did is working. I'm just telling you cause I know you also were depending on this project just as I was so yeah.
@wunter8 PR worked great so I debugged and renamed some variables and made a new PR. I'll merge it soon
@wunter8 PR worked great so I debugged and renamed some variables and made a new PR. I'll merge it soon
I'll just wait for the merge, thanks!
Message here when its ready.
Will do!
@ovr-hit It looks like my changes have been merged! But the changes haven't been pushed to pypi/pip, so you'll have to install the latest files from Github
@ovr-hit It looks like my changes have been merged! But the changes haven't been pushed to pypi/pip, so you'll have to install the latest files from Github
Is there an updated README doc? for grabbing the CSRF token and implementing it?
The README hasn't been updated yet. In addition to the connect.sid
cookie you grab from the browser using the Developer Tools (same as before), you'll need to grab the _csrf
cookie using the same method
The README hasn't been updated yet. In addition to the
connect.sid
cookie you grab from the browser using the Developer Tools (same as before), you'll need to grab the_csrf
cookie using the same method
Ok perfect, thanks.
The README hasn't been updated yet. In addition to the
connect.sid
cookie you grab from the browser using the Developer Tools (same as before), you'll need to grab the_csrf
cookie using the same method
Ok perfect, thanks.
Yeah I merged the changes yesterday and today I'll update the README and publish 1.1.8 on pypi
Yeah I merged the changes yesterday and today I'll update the README and publish 1.1.8 on pypi
Perfect!!
1.1.8 has been pushed to the main
branch as well as published on PyPi
https://pypi.org/project/PyTextNow/1.1.8/
There are still documentation and stuff to be added but functionality is working
I don't understand why i am getting this error Few days back i could run textapp automatically using pytextnow_api but suddenly it's not working and i am unable to figure out the problem