dhleong / playactor

play around with your playstation devices
143 stars 13 forks source link

Error: Unable to locate device: device named PS5-870 #29

Closed NikDevx closed 3 years ago

NikDevx commented 3 years ago

Possibly a problem when Internet access is sometimes lost


Hello

I'm checking PS state every 15 minutes playactor check --host-name PS5-870 and sometimes I get this error:

Error: Unable to locate device: device named PS5-870
    at PendingDevice.<anonymous> (/usr/lib/node_modules/playactor/dist/device/pending.js:82:19)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/playactor/dist/device/pending.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

My json response from check:

{
  "address": {
    "address": "*****",
    "family": "IPv4",
    "port": 9302,
    "size": 170
  },
  "hostRequestPort": 997,
  "extras": {
    "statusLine": "620 Server Standby",
    "statusCode": "620",
    "statusMessage": "Server",
    "status": "STANDBY"
  },
  "discoveryVersion": "00030010",
  "systemVersion": "08540001",
  "id": "**********",
  "name": "PS5-870",
  "status": "STANDBY",
  "type": "PS5"
}