-
Notifications
You must be signed in to change notification settings - Fork 75
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
Sending messages stopped working #5
Comments
Hello, --edit-- Sincerely, |
Sony will rate limit you if you try sending too many messages within a certain period of time. Although it does seem strange that it hasn't worked for 2 weeks, as the rate limiting should only last a few hours at the most. I haven't seen an update for the PS Messaging iOS app which makes it unlikely that they've changed anything with their requests. Might be worth asking the developer who made it or if you have access to the code you an email me a snippet of it and I can try to help out free of charge: tustin@nextgenupdate.com |
What @dandelaney8 hasn't mentioned is that this is only a local issue. I was the dev who wrote the code, and if I load the code on my server, or vagrant box it works fine, no issues. And yes this is with the same account. However on the production server (that was working) is no longer. A new ToS was issued just before the problem arrised, I resolved my testing account by accepting it, however I couldn't see one for Dan's account. I also noticed in your code (sorry cant ref file/line as on mobile) that you set a value for login using a cookie, however as this is designed to be ran in the background this would never be set in a browser, maybe this is the issue? Potentially use a tmp file for it? |
This is the line I was trying to refer to with regards to the cookie being set - https://github.com/Tustin/psn-php/blob/master/include/auth.php#L130 |
An update: We have tried using a new account, and made sure that we logged in with it on the PS4 console. Successfully sent messages through the console and using the iOS App, but it still doesn't work with the code. However, I found the following errors in our logs that might be able to help figure out the issue: [2016-08-21 22:10:01] local.ERROR: exception 'ErrorException' with message 'Undefined index: X-NP-GRANT-CODE' in /var/www/messaging/vendor/Tustin/psn-php/include/auth.php:92 [2016-08-22 17:45:02] local.ERROR: exception 'ErrorException' with message 'First parameter must either be an object or the name of an existing class' in /var/www/messaging/vendor/Tustin/psn-php/include/auth.php:116 [2016-08-22 18:45:01] local.ERROR: exception 'ErrorException' with message 'First parameter must either be an object or the name of an existing class' in /var/www/messaging/vendor/Tustin/psn-php/include/auth.php:164 Let me know if there's any other information I can provide. Thanks, |
I'll look into the issue today and see if I can find a fix. Perhaps Sony has updated something on their API that we've missed. |
There are defiantly limitations, per hour. You would need multiply IP's, and accounts to perform this. The captcha only appears if you use invalid login multiply times on an account.. |
Closing this as their API is unchanged. Please raise a new issue if this problem returns. |
Hello there,
My company hired a developer to build out an application that uses your repo to send PSN messages. It was working nicely, and then out of nowhere about 2 weeks ago it stopped functioning properly, and messages are not going out anymore. Would you have any insight into why this might have happened?
We heard that Sony may have started using a Captcha when users are logging in, and that might have messed with our account - but we haven't seen one when trying to log in using the PSN phone app or the online site.
Thanks in advance for any help you can provide,
Dan Delaney
The text was updated successfully, but these errors were encountered: