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

Endless loop of login prompts, even though credentials.json is valid #31

Open
dingoosh opened this issue May 19, 2021 · 3 comments
Open

Comments

@dingoosh
Copy link

dingoosh commented May 19, 2021

I have two devices: one Mac and one Raspberry Pi. I was able to setup and use playactor on the Mac fine, but the Pi ended up hitting a roadblock with a consistent HTTP error when attempting to log in to PSN - so a proper setup with the Pi is off the table. I attempted to just transfer credentials.json into the correct directory, and according to the output, it appears to read it, but just ignores it and still requests a login procedure. Is there something else I'm missing that needs to be transferred from my working set up, or some bit of code I can tweak to make playactor think the device has been "set up"? Here are my debug logs below. Thanks in advance.

pi@Pi:~ $ playactor standby --debug --host-name PS5-828
playactor:cli:options findDevice with: DeviceOptions {
enableDebug: true,
machineFriendly: false,
dontAutoOpenUrls: false,
searchTimeout: 30000,
connectTimeout: 15000,
dontAuthenticate: false,
alwaysAuthenticate: false,
deviceOnlyPS4: false,
deviceOnlyPS5: false,
localBindAddress: undefined,
localBindPort: undefined,
credentialsPath: undefined,
passCode: undefined,
deviceIp: undefined,
deviceHostName: 'PS5-828',
deviceHostId: undefined
} +0ms
playactor:discovery discover( { pingIntervalMillis: 5000, timeoutMillis: 30000, uniqueDevices: true } ) +0ms
playactor:discovery:udp acquire @ 0 +0ms
playactor:discovery:udp created new socket for { localBindAddress: undefined, localBindPort: undefined } +8ms
playactor:discovery:udp acquire @ 0 +13ms
playactor:discovery:udp joining existing socket for { localBindAddress: undefined, localBindPort: undefined } +2ms
playactor:discovery:udp send: ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ to 255.255.255.255 : 987 +19ms
playactor:discovery:udp send: ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ to 255.255.255.255 : 9302 +13ms
playactor:discovery:udp listening on { address: '0.0.0.0', family: 'IPv4', port: 42454 } +63ms
playactor:discovery:udp received device: {
type: 'DEVICE',
sender: { address: '10.0.0.56', family: 'IPv4', port: 9302, size: 158 },
version: '00020020',
data: {
type: 'DEVICE',
statusLine: '200 Ok',
statusCode: '200',
statusMessage: 'Ok',
status: 'AWAKE',
'host-id': '████████████',
'host-type': 'PS5',
'host-name': 'PS5-828',
'host-request-port': '997',
'device-discovery-protocol-version': '00030010',
'system-version': '08540001'
}
} +417ms
playactor:discovery:udp received device: {
type: 'DEVICE',
sender: { address: '10.0.0.56', family: 'IPv4', port: 9302, size: 158 },
version: '00030010',
data: {
type: 'DEVICE',
statusLine: '200 Ok',
statusCode: '200',
statusMessage: 'Ok',
status: 'AWAKE',
'host-id': '████████████',
'host-type': 'PS5',
'host-name': 'PS5-828',
'host-request-port': '997',
'device-discovery-protocol-version': '00030010',
'system-version': '08540001'
}
} +28ms
playactor:discovery:udp closing udp network +42ms
playactor:discovery:udp release @ 0 +14ms
playactor:discovery:udp closing udp network +1ms
playactor:discovery:udp release @ 0 +2ms
playactor:waker device {
address: { address: '10.0.0.56', family: 'IPv4', port: 9302, size: 158 },
hostRequestPort: 997,
extras: {
statusLine: '200 Ok',
statusCode: '200',
statusMessage: 'Ok',
status: 'AWAKE'
},
discoveryVersion: '00030010',
systemVersion: '08540001',
id: '████████████',
name: 'PS5-828',
status: 'AWAKE',
type: 'PS5'
} is already awake +0ms
playactor:credentials:disk reading credentials at /home/pi/.config/playactor/credentials.json +0ms
In a moment, we will attempt to open a browser window for you to login to your PSN account.
When the page shows "redirect", copy the URL from your browser's address bar and paste it here.
Hit ENTER to continue

@Underestimated
Copy link

I'm running into this too, I get to the prompt

In a moment, we will attempt to open a browser window for you to login to your PSN account. When the page shows "redirect", copy the URL from your browser's address bar and paste it here. Hit ENTER to continue

and then when I hit enter, it dumps me straight into the shell
I've thought maybe the prompt was malformed but pasting the url didn't help, and there's no documentation or log files I can find that can help so far.
I suspect it has something to do with the web browser on the Pi causing the error, but can't say for sure.

@Underestimated
Copy link

Here we go!
I did digging in the version information and found the fix.
add the flag --no-open-urls to the end of the login prompt.
This isn't documented anywhere in the application itself or on the readme, but really should be.
Doing this fixed the issue and no problems exist afterwards. but this indicates there needs to be a fix in the documentation.

@mitch7391
Copy link

add the flag --no-open-urls to the end of the login prompt.

Got this working finally thanks to this comment above; which took way too long to find. @dhleong is there any chance this can be added as a note on the README to make it easier for the next person? Also thanks for the good work on getting this working!

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

3 participants