Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Error Logging in #80

Closed
nanamizono opened this issue Feb 13, 2020 · 46 comments
Closed

Error Logging in #80

nanamizono opened this issue Feb 13, 2020 · 46 comments
Assignees
Labels
bug Something isn't working

Comments

@nanamizono
Copy link

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?

@nanamizono nanamizono added the bug Something isn't working label Feb 13, 2020
@AsmodeusShadows
Copy link

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

I'm also having this problem...
image

@AngryKiller
Copy link

@ryadanga
Copy link

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

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

Tustin commented Feb 23, 2020

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

YouGotHitByGunner commented Feb 25, 2020

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

@Dawg-z
Copy link

Dawg-z commented Mar 7, 2020

Hope the issue can get fixed soon!

@darnelldibbles-zz
Copy link

Having same issue on Mac as well

@BriluZz
Copy link

BriluZz commented Mar 16, 2020

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

@Rin-Okumura
Copy link

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

@Rin-Okumura
Copy link

It works now.

@Rin-Okumura
Copy link

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

@Kiznel
Copy link

Kiznel commented Mar 25, 2020

Uninstall, then delete PlayStationDiscord directory from AppData\Roaming.

Should work (at least temporarily) after reinstalling 3.1.1

@Tustin
Copy link
Owner

Tustin commented Mar 25, 2020

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

someone link 3.0.2 download plz

@bkt7396
Copy link

bkt7396 commented Mar 28, 2020

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

@bkt7396 Thanks!! working

@Cyan101
Copy link

Cyan101 commented Mar 30, 2020

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

Rabio1 commented Apr 2, 2020

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

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

@zeina99
Copy link

zeina99 commented Apr 5, 2020

I have the same problem

@ohhsodead
Copy link

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

@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 added a commit that referenced this issue Apr 10, 2020
downgrade electron to 4.0.4 to hopefully fix login issues #80, #86
@Tustin
Copy link
Owner

Tustin commented Apr 10, 2020

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

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

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

@shadowfreak16
Copy link

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

zeina99 commented Apr 17, 2020

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

zeina99 commented Apr 18, 2020

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

@Rin-Okumura
Copy link

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

Acorn9443 commented Apr 27, 2020

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

https://imgur.com/Ck5b7jb

@ninoM
Copy link

ninoM commented May 16, 2020

Also still getting this on 3.1.2 on Windows 10.
image

@kamiqaze
Copy link

kamiqaze commented May 17, 2020

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

kcmsm commented May 21, 2020

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

Tustin commented Jun 28, 2020

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

@MsMystic
Copy link

MsMystic commented Jan 1, 2021

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

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

@CharTex
Copy link

CharTex commented Mar 12, 2021

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

@CharTex
Copy link

CharTex commented Mar 12, 2021

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

joshlopes commented Mar 18, 2021

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

joshlopes commented Mar 18, 2021

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

Tustin commented Mar 18, 2021

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

joshlopes commented Mar 19, 2021

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

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

Verequies commented Apr 3, 2021

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

@Tustin Tustin unpinned this issue Apr 9, 2021
@Tustin Tustin closed this as completed Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests