Skip to content
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

Closed
oliverbytes opened this issue Jan 26, 2014 · 49 comments
Closed

Login Issue Since Jan 26, 2014 #3

oliverbytes opened this issue Jan 26, 2014 · 49 comments

Comments

@oliverbytes
Copy link

Just a few minutes ago, when I try to login I only get a false. Anybody noticing the same issue now?

@dprogramming
Copy link

Sometimes it works, but that seems to be occasionally, most of the time it doesn't work.

@hako
Copy link
Collaborator

hako commented Jan 26, 2014

Same for me, only sometimes it works.

@oliverbytes
Copy link
Author

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. :(

@daanlenaerts
Copy link

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.

@oliverbytes
Copy link
Author

I can view snaps and all other things.. just some false response when calling getUpdates and logging in.

@dprogramming
Copy link

Yes I think the problem is with logging in.

@oliverbytes
Copy link
Author

setting these in snapchat agent fixes the problem for me

const VERSION = '4.1.07';

public static $CURL_OPTIONS = array(
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 10,
CURLOPT_USERAGENT => 'Snapchat/4.1.07 (Nexus 4; Android 18; gzip)',
);

@daanlenaerts
Copy link

For me this seems to work too, any idea what can be causing this issue?

Van: NemOry Oliver Martinez
Verzonden: ‎zondag‎ ‎26‎ ‎januari‎ ‎2014 ‎15‎:‎47
Aan: JorgenPhi/php-snapchat
CC: Daan Lenaerts

setting these in snapchat agent fixes the problem for me

const VERSION = '4.1.07';

public static $CURL_OPTIONS = array(
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 10,
CURLOPT_USERAGENT => 'Snapchat/4.1.07 (Nexus 4; Android 18; gzip)',
);


Reply to this email directly or view it on GitHub.

@oliverbytes
Copy link
Author

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.

@daanlenaerts
Copy link

Probably, I hope that the issue doesn’t come back too.

Van: NemOry Oliver Martinez
Verzonden: ‎zondag‎ ‎26‎ ‎januari‎ ‎2014 ‎16‎:‎02
Aan: JorgenPhi/php-snapchat
CC: Daan Lenaerts

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.


Reply to this email directly or view it on GitHub.

@heidid
Copy link

heidid commented Jan 27, 2014

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.

@dprogramming
Copy link

It's a bit strange, should there really be problems on this version of iOs?


Van: Heidi Dongmailto:[email protected]
Verzonden: ‎27/‎01/‎2014 1:35
Aan: JorgenPhi/php-snapchatmailto:[email protected]
CC: dprogrammingmailto:[email protected]
Onderwerp: Re: [php-snapchat] Login Issue Since Jan 26, 2014 (#3)

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:
#3 (comment)

@shgn
Copy link

shgn commented Jan 31, 2014

Fix for this:

The real snapchat client no longer sends the version in the login requests, or any others. Comment out or remove

$data['version'] = self::VERSION;

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

@oliverbytes
Copy link
Author

@shgn with your fix should we put back the old version and useragent and should work?

@shgn
Copy link

shgn commented Jan 31, 2014

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:

Snapchat/6.1.2 (iPhone6,2; iOS 7.0.4; gzip)

@dprogramming
Copy link

Thanks, but it still works with the version for me...?

@ryanisboyling
Copy link

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?
Thanks!

@oliverbytes
Copy link
Author

My host can't login too.. any other else?

@dprogramming
Copy link

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.

@carestad
Copy link

Is it purely based on IP addresses? In that case it's pretty dumb. NAT obviously doesn't exist then...

@dprogramming
Copy link

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'?

@carestad
Copy link

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.

@dprogramming
Copy link

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...?

@carestad
Copy link

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.

@dprogramming
Copy link

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..

@ryanisboyling
Copy link

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?

@dprogramming
Copy link

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.

@ryanisboyling
Copy link

@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..

@dprogramming
Copy link

hmmmm, does someone else has an idea?

@dprogramming
Copy link

@ryanisboyling snaphchat.am seems to be down?
Edit: Not down, I copied snaphchat.am, but it has to be snapchat.am...

@carestad
Copy link

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).

@dprogramming
Copy link

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.

@ryanisboyling
Copy link

ah right, so if I just leave my website for a while they'll probably unblock my IP again?

@dprogramming
Copy link

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?

@dprogramming
Copy link

http://snapchatweb.com/ doesn't seem to work too.
Edit: Just like http://snapchat.milesokeefe.com/

@ryanisboyling
Copy link

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.
And I know, a lot of them have been down for a while now, i'm pretty sure they're trying to fix the problem too..

@dprogramming
Copy link

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...?

@ryanisboyling
Copy link

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?

@dprogramming
Copy link

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
Copy link

@dprogramming
Copy link

@ryanisboyling looks nice 👍

@ryanisboyling
Copy link

@dprogramming ah thanks man! Would be better if Snapchat would let me run it ey;)

@dprogramming
Copy link

@ryanisboyling yes :-)

@dprogramming
Copy link

@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?

@ryanisboyling
Copy link

@dprogramming I'm hosting with GoDaddy.com :-/

@dprogramming
Copy link

:-( 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] .

@dprogramming
Copy link

That seems normal, they seem to be blocking much faster but they release the IP faster too. I'll answer as soon as possible.

@dprogramming
Copy link

@ryanisboyling I didn't receive your email?

@liamcottle
Copy link

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.

tlack/snaphax#14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants