It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
chung2: Still no games in Library. Has anyone found a way to fix this??
It wasn't coming up for me. But I went into owned games, scrolled down until I found one called Unknown Game, clicked on that and it was The Witcher.
avatar
pyroguy7: I'm also getting this error.
avatar
goodvanilla: I figured what made the darn thing NOT work and do the plugin crash , was because I had no basic knowledge of python and did not know what a correct line/section should look like.

What can throw you off and make you do the lines wrong is this sentence "delete everything on that line after" from Bustacaps helping post.
You have to make sure the couple of lines to that WHOLE SECTION is deleted, not just a single line

I am talking about this
"original section looks like

async def authenticate(self, stored_credentials=None):
stored_npsso = stored_credentials.get("npsso") if stored_credentials else None
if not stored_npsso:
return NextStep("web_session", AUTH_PARAMS)

AFTER your edit the section should look like this

async def authenticate(self, stored_credentials=None):
stored_npsso = "xxxxxxxxxxxyournumbersherexxxxxxxxx"

And nothing else ! not the next lines and not even the : at the end.

I hope it made it clear , and help you other people who like me had no idea :)
YES! SMH this took me an embarrassingly long time, and then it just, worked! maybe I'll be able to get my witcher 3 before the deal ends. Thanks!
avatar
Bustacap: workaround until they fix it:

- close GOG Galaxy if it's running at the moment

- log in to PSN (store.playstation.com) through your browser
(if you were already logged in, log out first, then back in)

- after the login open this link: https://ca.account.sony.com/api/v1/ssocookie

youll get something like: {"npsso":"xxx"}
where xxx is the npsso value

- open windows explorer and enter the following into the address bar at the top and press enter
%LocalAppData%\GOG.com\Galaxy\plugins\installed\

- open the psn_{random number} folder and edit the plugin.py file with your favourite text editor

- go to line 64. it sould look like this:
stored_npsso = stored_credentials.get("npsso") if stored_credentials else None

delete everything on that line after: stored_npsso =
then add your nppso value behind it in quotation marks.

it should look like this:
stored_npsso = "npsso value"

("npsso value" is the value from step 3 and should be a 64 character long text consisting of numbers, lower case letters and upper case letters)
(the quotation marks " " are important!)

- save the changes made to plugin.py and close the file
- restart GOG Galaxy
- try connecting with PSN again
avatar
Kosiarz2039: Hey you link on step 3 after the login open this link: https://ca.account.sony.com/api/v1/ssocookie but i have error when i open this link can you help?
{"error":"invalid_grant","error_description":"Invalid login","error_code":20,"docs":"[url=https://auth.api.sonyentertainmentnetwork.com/docs/","parameters]https://auth.api.sonyentertainmentnetwork.com/docs/","parameters[/url]":[]}
this is the error
The npsso value can be found in the cookie stored in the browser.
avatar
chung2: Still no games in Library. Has anyone found a way to fix this??
avatar
ScribblyScribe: It wasn't coming up for me. But I went into owned games, scrolled down until I found one called Unknown Game, clicked on that and it was The Witcher.
There's no game period in my library. It's empty. Even though I have shetloads of PS4 games connected to my PSN.
avatar
goodvanilla: I figured what made the darn thing NOT work and do the plugin crash , was because I had no basic knowledge of python and did not know what a correct line/section should look like.

What can throw you off and make you do the lines wrong is this sentence "delete everything on that line after" from Bustacaps helping post.
You have to make sure the couple of lines to that WHOLE SECTION is deleted, not just a single line

I am talking about this
"original section looks like

async def authenticate(self, stored_credentials=None):
stored_npsso = stored_credentials.get("npsso") if stored_credentials else None
if not stored_npsso:
return NextStep("web_session", AUTH_PARAMS)

AFTER your edit the section should look like this

async def authenticate(self, stored_credentials=None):
stored_npsso = "xxxxxxxxxxxyournumbersherexxxxxxxxx"

And nothing else ! not the next lines and not even the : at the end.

I hope it made it clear , and help you other people who like me had no idea :)
avatar
Bustacap: thats actually not necessary but it might help some people who mightve edited the file wrong
It's still not working for me, anything I do, I get "Offline retry"
I am 1000% sure I did everything just as you and some other guys described
avatar
Bustacap: thats actually not necessary but it might help some people who mightve edited the file wrong
avatar
TheBosssy1: It's still not working for me, anything I do, I get "Offline retry"
I am 1000% sure I did everything just as you and some other guys described
I just tried it on my Mac and it finally worked. Could not get Windows 10 to work properly.
Thank you for Bustacap's workaround. This worked perfectly as stated.
Pretty easy to implement as well.
Now I have the Witcher 3 PC game! Woohoo!

*********************************************
[i]- go to line 64. it sould look like this:
stored_npsso = stored_credentials.get("npsso") if stored_credentials else None

delete everything on that line after: stored_npsso =
then add your nppso value behind it in quotation marks.[/i]
*********************************************
Also, one slight tweak (no need to delete the portion as mentioned here. You can type # to comment out the unwanted portion)

So initially Line 64 will look like this:

stored_npsso = stored_credentials.get("npsso") if stored_credentials else None

After your update, it will look like this:
stored_npsso = "npsso value copied" #stored_credentials.get("npsso") if stored_credentials else None
I tried several times, but I didn't have success, I get "Offline: Retry" in all cases.

Anybody can help?
Attachments:
avatar
goodvanilla: I figured what made the darn thing NOT work and do the plugin crash , was because I had no basic knowledge of python and did not know what a correct line/section should look like.

What can throw you off and make you do the lines wrong is this sentence "delete everything on that line after" from Bustacaps helping post.
You have to make sure the couple of lines to that WHOLE SECTION is deleted, not just a single line

I am talking about this
"original section looks like

async def authenticate(self, stored_credentials=None):
stored_npsso = stored_credentials.get("npsso") if stored_credentials else None
if not stored_npsso:
return NextStep("web_session", AUTH_PARAMS)

AFTER your edit the section should look like this

async def authenticate(self, stored_credentials=None):
stored_npsso = "xxxxxxxxxxxyournumbersherexxxxxxxxx"

And nothing else ! not the next lines and not even the : at the end.

I hope it made it clear , and help you other people who like me had no idea :)
avatar
JazzyS0X: YES! SMH this took me an embarrassingly long time, and then it just, worked! maybe I'll be able to get my witcher 3 before the deal ends. Thanks!
so i tried it 3 ways, and none worked
first way was stored_npsso = "xxxxxxxxxx" without quotations and it said crashed
tried it again and put quotations so it's ("xxxxxxxxx") and it crashed
then i tried it with {"xxxxxxxxx"} and when i click connect it automatically says it's offline now?
avatar
JazzyS0X: YES! SMH this took me an embarrassingly long time, and then it just, worked! maybe I'll be able to get my witcher 3 before the deal ends. Thanks!
avatar
professor_tOAKs: so i tried it 3 ways, and none worked
first way was stored_npsso = "xxxxxxxxxx" without quotations and it said crashed
tried it again and put quotations so it's ("xxxxxxxxx") and it crashed
then i tried it with {"xxxxxxxxx"} and when i click connect it automatically says it's offline now?
please post a screenshot of that section in your plugin.py file
avatar
Kosiarz2039: Hey you link on step 3 after the login open this link: https://ca.account.sony.com/api/v1/ssocookie but i have error when i open this link can you help?
{"error":"invalid_grant","error_description":"Invalid login","error_code":20,"docs":"[url=https://auth.api.sonyentertainmentnetwork.com/docs/","parameters]https://auth.api.sonyentertainmentnetwork.com/docs/","parameters[/url]":[]}
this is the error
avatar
olesean: The npsso value can be found in the cookie stored in the browser.
OH MY GOD SCRATCH THAT I DID IT OMGGGGGGGGG THANK YOU!
avatar
Bustacap: workaround until they fix it:

- log in to PSN (store.playstation.com) through your browser

- after the login open this link: https://ca.account.sony.com/api/v1/ssocookie
Copy content of "npsso"

- open windows explorer and enter the following into the address bar at the top and press enter
%LocalAppData%\GOG.com\Galaxy\plugins\installed\

- open the psn_{random number} folder and edit the plugin.py file with your favourite text editor

- go to line 64 and change it from:
stored_npsso = stored_credentials.get("npsso") if stored_credentials else None

to:
stored_npsso = "Copied value of npsso"
("copied value of npsso" should be a 64 character long text consisting of numbers, lower case letters and upper case letters)
(the quotation marks " " are important!)

- restart GOG Galaxy
- try connecting with PSN again
avatar
Timmoz: You, my good sir, are an absolute hero!
I came across this problem earlier today, figured I'd google it ('cause internet knows best) and over the past day I see you have helped tons of people with this already, and now I'm lucky to be one of them as well!

To anyone trying this and running into problems, as mentioned by several people before, make sure you delete everything on the line after the copied npsso string (i.e. delete the "if stored_credentials else None" part).

Also, make sure you log in to the playstation store site, not the playstation network site: I tried that first, and then the link provided by Bustacap doesn't work. Honestly though, that's entirely on me for not actually following the instructions and assuming those two sites would be the same... ;)
brillant!!! Thanks a LOT
It says offline retry. tried the above mentioned tutorial and this is what I get. Help
I'm getting offline retry as well even though I'm logged in and even on my PS4 as we speak.
Thanks, I got it.