Tustin / PlayStationDiscord

Discord Rich Presence for PlayStation 4, PlayStation 3, and PlayStation Vita games.
https://tustin.dev/PlayStationDiscord/
GNU General Public License v3.0
391 stars 102 forks source link

Error Logging in #80

Closed nanamizono closed 2 years ago

nanamizono commented 4 years ago

So I just installed PlaystationDiscord and I tried to log in with my account and I got this error Screenshot_1

What am I supposed to do?

AsmodeusShadows commented 4 years ago

I am having the same issue and I noticed after trying to log in the program itself has a messed up image, I also just downloaded and installed it as well.

playstation discord issue
Jaynator495 commented 4 years ago

I'm also having this problem... image

AngryKiller commented 4 years ago

Update to version 3.1.1: https://github.com/Tustin/PlayStationDiscord/releases/tag/v3.1.1

jupys commented 4 years ago

Update to version 3.1.1: https://github.com/Tustin/PlayStationDiscord/releases/tag/v3.1.1

Nope. Doesn't work. This issue was created after 3.1.1 was released too.

AngryKiller commented 4 years ago

Update to version 3.1.1: https://github.com/Tustin/PlayStationDiscord/releases/tag/v3.1.1

Nope. Doesn't work. This issue was created after 3.1.1 was released too.

I first had the issue because I downloaded version 3.1.0 (the one linked on the official website), and updating to 3.1.1 fixed it for me, it's weird that you still have this issue

Tustin commented 4 years ago

This is caused by Akamai's anti-bot protection. I thought I had fixed this in the latest update, but for some reason it's not working for everyone. I don't really have any clue what is triggering it and I don't really have a lot of free time to try to figure it out.

YouGotHitByGunner commented 4 years ago

I have the same issue. Edit: After a few retries, it started working.

Dawg-z commented 4 years ago

Hope the issue can get fixed soon!

darnelldibbles-zz commented 4 years ago

Having same issue on Mac as well

BriluZz commented 4 years ago

hello i still have this bug. will be settled in the future? or is there a technique to log in?

Rin-Okumura commented 4 years ago

Having the same exact issue on Windows 10. Hopefully Tustin will find a way to fix it eventually.

Rin-Okumura commented 4 years ago

It works now.

Rin-Okumura commented 4 years ago

Now it doesn't work again. It's weird.

Kiznel commented 4 years ago

Uninstall, then delete PlayStationDiscord directory from AppData\Roaming.

Should work (at least temporarily) after reinstalling 3.1.1

Tustin commented 4 years ago

I've also heard some success with using 3.0.2 (no idea why; I didn't change any code in the login window between that update and 3.1.0). You can try that and see if the login works. It shouldn't auto update until you actually login but once you logged in you should stay logged in for a long time unless you delete the program cache.

KrazeOooga commented 4 years ago

someone link 3.0.2 download plz

bkt7396 commented 4 years ago

@KrazeOooga https://github.com/Tustin/PlayStationDiscord/releases/tag/3.0.2

3.0.2 is working for me, although it has an "auto update failed" I was still able to authenticate and login

KrazeOooga commented 4 years ago

@bkt7396 Thanks!! working

Cyan101 commented 4 years ago

Any word on why this hasn't been working? Happy to try PR and fix if I get pointed in the right dircetion

3.0.2 lets me login but doesnt show in discord

Rabio1 commented 4 years ago

Any word on why this hasn't been working? Happy to try PR and fix if I get pointed in the right dircetion

3.0.2 lets me login but doesnt show in discord

this worked for me gj finding this

Gamewizard commented 4 years ago

Screenshot_20200403_205539 I have been having the same issue under Linux. Can't login to my PSN account.

zeina99 commented 4 years ago

I have the same problem

ohhsodead commented 4 years ago

@Gamewizard From trying another app that uses the same method for login as this, it also has the exact same error. I guess something is wrong with PS servers for now, and maybe will be fixed soon?

Gamewizard commented 4 years ago

@ohhsodead This was what I initially suspected until I signed in through my browser fine. Even tried a different browser from my normal one to verify a cached cookie was not allowing me to still sign in while there where other issues going on but I singed in fine in the other browser when I was trying to get this up and running.

Tustin commented 4 years ago

I pushed a new version that downgrades Electron to the version I used in PlayStationDiscord 3.0.2 and below (which seemed to have some success for people). Please try it and let me know if you can login 😄. https://github.com/Tustin/PlayStationDiscord/releases/tag/v3.1.2

Rin-Okumura commented 4 years ago

I pushed a new version that downgrades Electron to the version I used in PlayStationDiscord 3.0.2 and below (which seemed to have some success for people). Please try it and let me know if you can login 😄. https://github.com/Tustin/PlayStationDiscord/releases/tag/v3.1.2

Thanks, man. It works fine for now. I'll keep you informed.

Diamond-10 commented 4 years ago

So the 3.1.2 version works for me on Windows, but not on Mac.

shadowfreak16 commented 4 years ago

I pushed a new version that downgrades Electron to the version I used in PlayStationDiscord 3.0.2 and below (which seemed to have some success for people). Please try it and let me know if you can login 😄. https://github.com/Tustin/PlayStationDiscord/releases/tag/v3.1.2

Hello. Sorry, it didn't work for my Mac :<

zeina99 commented 4 years ago

So the 3.1.2 version works for me on Windows, but not on Mac.

I tried it on my mac, and it works just fine.

zeina99 commented 4 years ago

ok nevermind, for some reason i was logged out and logging in doesn't work anymore

Rin-Okumura commented 4 years ago

I pushed a new version that downgrades Electron to the version I used in PlayStationDiscord 3.0.2 and below (which seemed to have some success for people). Please try it and let me know if you can login 😄. https://github.com/Tustin/PlayStationDiscord/releases/tag/v3.1.2

Hey man. 2 weeks later and still no problem. Works perfectly. Thank you.

Acorn9443 commented 4 years ago

Still getting a server issue signing in with v3.1.2 on MacOS

https://imgur.com/Ck5b7jb

ninoM commented 4 years ago

Also still getting this on 3.1.2 on Windows 10. image

kamiqaze commented 4 years ago

on mac 10.13.6. the latest release is not working for me, either. even tried older releases, no luck.

edit: surprisingly, it logs in fine when i tried it on a windows desktop. but refuses to connect to discord there.

kcmsm commented 4 years ago

Hello! (first of all, english is not my first language so I apologize for any mistakes...)

Some people were also facing login problems on the official PS4 Remote Play program on Windows and the trick that solved the issue was to change the url on the login page from "https://id.sonyentertainmentnetwork.com/signin/" to "https://my.account.sony.com/central/signin/". Could this maybe fix this issue on PlaystationDiscord too?

I was using the 3.0.2 version just fine but my account logged out and now I can't login on any version anymore.

Tustin commented 4 years ago

@juyeonies Not having much luck with your new link. It just says "An error has occurred." when I open the page.

MsMystic commented 3 years ago

I get the same error too (using a Mac), tried to download the older version as well didn't work. Hope that there is going to be a fix soon...

Russkingking commented 3 years ago

I'm having this issue with the newest version, I want to use the new version so I can have the PS5 support.

CharTex commented 3 years ago

Can confirm this issue is still occurring on the latest release. (3.2.0)

CharTex commented 3 years ago

Alright, Maybe have found the cause of the issue and a temporary solution.

By changing the required electron version in the package.json to 6.0.0 then rebuilding the software using the given instructions, I was able to login successfully. The software seems to work perfectly fine after doing this as well.

Logging in once with this newly compiled version will cause the official release (with the ps5 support) to work fine too.

So I think it is definitely something to do with later Electron versions. It is very odd, especially as the software worked fine on my machine before I re-installed my operating system.

Just thought I should document this in-case anybody else wants to give it a try.

joshlopes commented 3 years ago

image

For whatever is worthy i get this issue when attempting to login in the last version (3.2.0) and 3.1.2 on MAC

joshlopes commented 3 years ago

Oh i see this library uses an hacked listened URL from the official app, the link: https://ca.account.sony.com/api/authz/v3/oauth/authorize?response_type=code&app_context=inapp_ios&device_profile=mobile&extraQueryParams=%7B%0A%20%20%20%20PlatformPrivacyWs1%20%3D%20minimal%3B%0A%7D&token_format=jwt&access_type=offline&scope=psn%3Amobile.v1%20psn%3Aclientapp&service_entity=urn%3Aservice-entity%3Apsn&ui=pr&smcid=psapp%253Asettings-entrance&darkmode=true&redirect_uri=com.playstation.PlayStationApp%3A%2F%2Fredirect&support_scheme=sneiprls&client_id=ac8d161a-d966-4728-b0ea-ffec22f69edc&duid=0000000d0004008088347AA0C79542D3B656EBB51CE3EBE1&device_base_font_size=10&elements_visibility=no_aclink&service_logo=ps

Is not working anymore, you will need to grab the new one :)

EDIT:

Changing the URL to https://my.account.sony.com/central/signin/?response_type=code&app_context=inapp_ios&device_profile=mobile&extraQueryParams=%7B%0A%20%20%20%20PlatformPrivacyWs1%20%3D%20minimal%3B%0A%7D&token_format=jwt&access_type=offline&scope=psn%3Amobile.v1%20psn%3Aclientapp&service_entity=urn%3Aservice-entity%3Apsn&ui=pr&smcid=psapp%253Asettings-entrance&darkmode=true&redirect_uri=com.playstation.PlayStationApp%3A%2F%2Fredirect&support_scheme=sneiprls&client_id=ac8d161a-d966-4728-b0ea-ffec22f69edc&duid=0000000d0004008088347AA0C79542D3B656EBB51CE3EBE1&device_base_font_size=10&elements_visibility=no_aclink&service_logo=ps&auth_ver=v3&error=login_required&error_code=4165&error_description=User+is+not+authenticated&no_captcha=true&cid=4b45daf7-3bc2-4805-ba4f-c08e00846a24#/signin/ca?entry=ca

Made it work till here: image

EDIT 2: 3.0.2 worked for me too i was able to login on MAC

@Tustin sorry for the ping, but wouldn't this information help pin point what the problem is ? Should be a quick fix for you i would imagine.

Tustin commented 3 years ago

@joshlopes That first URL you linked is new actually. They started using it for the login in the new mobile app a few months ago. The login issue described here really has nothing to do with what login endpoint you use. Sony utilizes anti-bot scripts made by Akamai, which seems to be very strict and for some reason will give false-positives that result in this error. You can Google that specific error message to see normal PlayStation users getting that error in a regular browser.

I've tried many things to circumvent it but it honestly just seems random. I've had times where the login works fine for me and other times I'll get that error too. I think the only solution is to hope that Sony either removes those scripts or tones them down a bit so they aren't as aggressive.

joshlopes commented 3 years ago

@Tustin thank you, if we use the auth v2 from 3.0.2 would that not work with what we currently have? Do we need the new "stuff" from oauth v3? Because the scripts and anti bot scripts you mention seem to not exist in v2, i can login just fine.

EDIT: Just said that, and tried to login again and this time it worked. Weird!

SpencerFerret commented 3 years ago

I can get it to sign in on 3.1.2 but as soon as I update it says I need to refresh my authorization tokens. I've tried quite a few time hoping to get that one lucky time it works, but now I give up

Verequies commented 3 years ago

For me the latest commit doesn't compile however the previous commit works. I can change the required electron version to 8.5.5 and I am able to logon and everything works successfully on Linux :D