-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login Issue Since Jan 26, 2014 #3
Comments
Sometimes it works, but that seems to be occasionally, most of the time it doesn't work. |
Same for me, only sometimes it works. |
Since yesterday and past. I only get a false response like 1 / 100 times a day. right now the false response is 1000 / 100 a day.. It's like that right now. The problem isn't my host too. I also tried different user agents and snapchat versions in the snapchat agent class. :( |
Viewing snaps seems to be not working completely. I also tested the snapchat app and there it works so the problem has to be with this API I guess. |
I can view snaps and all other things.. just some false response when calling getUpdates and logging in. |
Yes I think the problem is with logging in. |
setting these in snapchat agent fixes the problem for me const VERSION = '4.1.07'; public static $CURL_OPTIONS = array( |
For me this seems to work too, any idea what can be causing this issue? Van: NemOry Oliver Martinez setting these in snapchat agent fixes the problem for me const VERSION = '4.1.07'; public static $CURL_OPTIONS = array( — |
Default was the 6.0.2 version with an iPhone user agent. so somewhere the iphone is the issue. I hope the issue doesn't come back again. |
Probably, I hope that the issue doesn’t come back too. Van: NemOry Oliver Martinez Default was the 6.0.2 version with an iPhone user agent. so somewhere the iphone is the issue. I hope the issue doesn't come back again. — |
A few days ago I started having having problems getting snaps, and today I've also started getting false upon login. NemOry's fix above fixes it for me as well. |
It's a bit strange, should there really be problems on this version of iOs? Van: Heidi Dongmailto:[email protected] A few days ago I started having having problems getting snaps, and today I've also started getting false upon login. NemOry's fix above fixes it for me as well. Reply to this email directly or view it on GitHub: |
Fix for this: The real snapchat client no longer sends the version in the login requests, or any others. Comment out or remove
from snapchat_agent.php:235 and you'll be set, all working. I believe snapchat now returns a fake 500 error if version is set in the POST requests |
@shgn with your fix should we put back the old version and useragent and should work? |
I didn't experiment too much with it, just ran the iOS client through a debugging proxy and noticed the only difference in login queries was the lack of the 'version' being set in POST requests. I'm no longer sending Version with the POST requests and the useragent is set to the latest iOS useragent which is:
|
Thanks, but it still works with the version for me...? |
I seem to be facing this problem again today, i'm not sure if Snapchat has changed the sending version again - could anyone verify this? |
My host can't login too.. any other else? |
I think I know the problem, but I think it is not to solve that easy. Snapchat seems to block IP addresses that send a lot of queries in a short timespan. They did that already before but now it seems that they have speed up that process. I previously used a vpn to change my server's IP but that doesn't seem to work anymore because now I should change my IP about every hour when I have a lot of people use my service. |
Is it purely based on IP addresses? In that case it's pretty dumb. NAT obviously doesn't exist then... |
I don't know if it's only based on IP addresses, I think it is. What do you mean with 'NAT doesn't exist then'? |
Because if the block is based purely on IP addresses, then workplaces, schools, college dorms, etc. that uses NAT and only have one external IP address, gets blocked. Which is probably what has happened where I live. |
Yes, but the fact that a network uses NAT has not much to do with this because this library is running on a server, and a server typically only has one IP address. Snapchat sees the server IP, not the end user's IP...? |
Well yes, because Snapchat doesn't see a difference between this library or someone using their app on their smartphone. And that's why they've probably (finally?) set some restrictions on the use of their APIs that doesn't work too well. Snapchat can only see your external IP / public IP / internet IP, which in a lot of places is the same for the entire household, company, school, etc.. IPv4 is too small to hand out unique IPs to every device anyway, so that's where NAT comes in to the picture. But this is getting kind of off-topic. My main point is that if Snapchat blocks or restricts based on IP addresses only (and not IP + username or something), then depending on how their restrictions are set up, it could block out larger masses from accessing their service. Which in turn probably isn't what they want to do. |
Yes, I know but I think they want to block every service that uses it's API. For normal users it doesn't make a difference because they don't perform a lot of queries but for servers that's a problem. So I think that it'll be very hard to find a solution for this problem.. |
So, it's nothing to do with the Snapchat version? Some websites using this api have managed to fix the problem, i was wondering if it was something they have changed again? |
What websites are you talking about? I don't think it's a version that's changed again, I can be wrong but I think the problem is that Snapchat blocks IP's that send a lot of queries. |
@dprogramming For instance, i'm pretty sure snapchat.am is using this because the login didn't work for a while yesterday and it's only just started working again.. |
hmmmm, does someone else has an idea? |
@ryanisboyling snaphchat.am seems to be down? |
Yeah, but I also suspect that the IP blocking is time limited, which could explain why you're able to use the website again. If Snapchat changes how to use their API, a new version of the app would also needed to be pushed, which I haven't seen for a while (iOS). |
That's why I'm thinking they speed up their blocking system. Because when I use another IP (using a vpn) it works half an hour or so but then it stops again. |
ah right, so if I just leave my website for a while they'll probably unblock my IP again? |
That's not sure because this are all speculations, we are not sure about the real problem. Possibly it will help but if this is the problem it will probably come back again after some time. What website do you have? For what do you use it? Does it query the Snapchat servers a lot? |
http://snapchatweb.com/ doesn't seem to work too. |
hidemysnap.com - I have took it down for now during this problem. It pretty popular, but it doesn't query the Snapchat servers a lot at once, it's usually here and there. |
Yes I've contacted snapchat.am but no answer yet. But if your website is prety popular, don't you have to query the Snapchat servers a lot? Every time a user logs in, at least...? |
ah thanks, could you send me a message when you receive a reply from them? And I guess so, but there's no way of controlling that, right? |
Every time when you load a snap, send a snap, sign in. It has to contact the Snapchat servers. What's the url of your website? |
@ryanisboyling looks nice 👍 |
@dprogramming ah thanks man! Would be better if Snapchat would let me run it ey;) |
@ryanisboyling yes :-) |
@ryanisboyling I think I've found a solution, using VPN and I'm developing a system that changes IP when Snapchat blocks current IP. Do you host hidemysnap.com on your own server? |
@dprogramming I'm hosting with GoDaddy.com :-/ |
:-( that is not ideal, you can not install software and use VPN or so... Maybe we should work together, I have my own server running. Maybe we have to figure that out? Email me, [email protected] . |
That seems normal, they seem to be blocking much faster but they release the IP faster too. I'll answer as soon as possible. |
@ryanisboyling I didn't receive your email? |
If you guys are still having problems with IP blocking, I found a work around which has been running my system. "SaveMySnaps", either you can use the same method as me or you could use my systems API. |
Just a few minutes ago, when I try to login I only get a false. Anybody noticing the same issue now?
The text was updated successfully, but these errors were encountered: