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

API returning error #79

Closed
ali-layken opened this issue Jan 9, 2015 · 12 comments
Closed

API returning error #79

ali-layken opened this issue Jan 9, 2015 · 12 comments

Comments

@ali-layken
Copy link

My account is not locked and my password and everything is correct. It's still returning this error:

PHP Notice: Undefined property: Snapchat::$cache in /home/username/Desktop/NHSO/src/snapchat.php on line 234

PHP Fatal error: Call to a member function get() on a non-object in /home/username/Desktop/NHSO/src/snapchat.php on line 234

@hisham-albeik
Copy link
Contributor

The account might not be locked but the IP address you're connecting from might be blocked. Sometimes you an get blocked and not get the "ip address you connected from" error message. Also, if you haven't used it in a while you might be missing the header update that is either waiting for a pull request or recently merged. I think if you look at the github project and look in the pull requests you'll see the latest chnages. Again I'm not sure if it is merged yet, so you might need to look into closed requests if it was.

Also, it's no coincidence that you are getting it at the same time as another person who received the blocked IP address error message. I believe they do it in batches during certain intervals.

First try changing IP address, if you can't then maybe try connecting through a VPN, Tor, or a proxy. (Unsure how you would do it through a proxy)

Sent from my iPhone

On Jan 8, 2015, at 21:07, ahmed-usman [email protected] wrote:

My account is not locked and my password and everything is correct. It's still returning this error:

PHP Notice: Undefined property: Snapchat::$cache in /home/koopie/Desktop/NHSO/src/snapchat.php on line 234

PHP Fatal error: Call to a member function get() on a non-object in /home/koopie/Desktop/NHSO/src/snapchat.php on line 234


Reply to this email directly or view it on GitHub.

@DanMossa
Copy link

I'm also getting an error made an issue #78
I'll try and figure something out and get back to you on it.

@LinoSuarez
Copy link
Contributor

Just use this #80

@hako
Copy link
Collaborator

hako commented Jan 10, 2015

@Dgameman1 please try @LinoSuarez's fix and could you tell us if it works for you or not?

@imlordeyaya
Copy link

did it and it still does not work.

@ThePengwin
Copy link

@LinoSuarez : thanks, that has fixed things up for me for now.

Just a note though: I set up and watched the latest snapchat on android and instead of posting to /bq/login/ it is now posting to /loq/login. Im guessing in the future this may cause issues with logging in.

@DanMossa
Copy link

@hako @LinoSuarez Tried it and it still didn't work.
Is there any way to use a proxy with this?

@hako
Copy link
Collaborator

hako commented Jan 11, 2015

@Dgameman1 what's your current setup? How are you running the php-snapchat library?

@DanMossa
Copy link

@hako On my website. I believe the website's IP is banned now =/

@LinoSuarez
Copy link
Contributor

It's possible to use proxy -> stream_context_set_default(['http'=>['proxy'=>'proxy-host:proxy-port']]);

@ali-layken
Copy link
Author

I found a fix. I used a different Device thing. I'm not sure I got it from somewhere else. My account wasn't blocked, Snapchat just wasn't letting me log in the same way I used to.

@DanMossa
Copy link

@LinoSuarez Do you know where I would add this information?

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

7 participants