./holepunch-test xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx                                                          255 ✘  17s   mkdocs-venv  
libchiaki UDP Holepunching Test
Using OAuth token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Found 1 devices
PS5 Streetpea's PS5 (00000007000a00c0000102840012000054e5f53b7531cc563e458b95a81ac1a9) rp_enabled=true
>> Using PS5 device Streetpea's PS5 for session
[D] Session state: 0 = [ ]
>> Initialized session
[D] chiaki_holepunch_session_create: Created websocket thread
[D] chiaki_holepunch_session_create: Waiting for websocket to open...
[V] websocket_thread_func: Connected to push notification WebSocket wss://44-234-166-159-pushcl.np.communication.playstation.net/np/pushNotification
[D] Session state: 1 = [ ✅WS_OPEN ]
[D] http_create_session: Sending JSON:
{"remotePlaySessions":[{"members":[{"accountId":"me","deviceUniqueId":"me","platform":"me","pushContexts":[{"pushContextId":"d15d8f5b-5215-4642-bd1e-935fb56cb071"}]}]}]}
[D] websocket_thread_func: PING.
[V] websocket_thread_func: Received WebSocket frame of length 0 with flags 64
[D] websocket_thread_func: Received PONG.
[V] websocket_thread_func: Received WebSocket frame of length 757 with flags 1
[V] websocket_thread_func: Received WebSocket frame with 757 bytes of payload.
[V] {
  "version":"2.1",
  "method":3001,
  "dataType":"psn:sessionManager:sys:rps:members:created",
  "to":{
    "accountId":5499938017192405737,
    "onlineId":"streetpea",
    "platform":[
      "REMOTE_PLAY"
    ],
    "isSystemOnly":false,
    "toSystem":false
  },
  "body":{
    "data":{
      "customProperties":{
        "from":{
          "accountId":"5499938017192405737",
          "deviceUniqueId":"0000000700410080341d63c6deb8cc3428013f4311a9440e",
          "onlineId":"streetpea",
          "platform":"REMOTE_PLAY"
        }
      },
      "members":[
        {
          "accountId":"5499938017192405737",
          "deviceUniqueId":"0000000700410080341d63c6deb8cc3428013f4311a9440e",
          "joinTimestamp":1712201639628,
          "onlineId":"streetpea",
          "platform":"REMOTE_PLAY"
        }
      ],
      "sessionId":"25900b62-8cb7-4b64-8f66-e78cea093501"
    }
  },
  "contexts":[
    {
      "contextId":"d15d8f5b-5215-4642-bd1e-935fb56cb071",
      "sequenceNumber":2
    }
  ]
}
[V] websocket_thread_func: Received WebSocket frame of length 564 with flags 1
[V] websocket_thread_func: Received WebSocket frame with 564 bytes of payload.
[V] {
  "version":"2.1",
  "method":3001,
  "dataType":"psn:sessionManager:sys:remotePlaySession:created",
  "to":{
    "accountId":5499938017192405737,
    "onlineId":"streetpea",
    "platform":[
      "REMOTE_PLAY"
    ],
    "isSystemOnly":false,
    "toSystem":false
  },
  "body":{
    "data":{
      "customProperties":{
        "from":{
          "accountId":"5499938017192405737",
          "deviceUniqueId":"0000000700410080341d63c6deb8cc3428013f4311a9440e",
          "onlineId":"streetpea",
          "platform":"REMOTE_PLAY"
        }
      },
      "sessionId":"25900b62-8cb7-4b64-8f66-e78cea093501"
    }
  },
  "contexts":[
    {
      "contextId":"d15d8f5b-5215-4642-bd1e-935fb56cb071",
      "sequenceNumber":1
    }
  ]
}
[D] http_create_session: Received JSON:
{"remotePlaySessions":[{"sessionId":"25900b62-8cb7-4b64-8f66-e78cea093501","members":[{"accountId":"5499938017192405737","platform":"REMOTE_PLAY","deviceUniqueId":"0000000700410080341d63c6deb8cc3428013f4311a9440e"}]}]}
[D] chiaki_holepunch_session_create: Sent session creation request
[D] wait_for_notification: Found notification of type 1
[D] chiaki_holepunch_session_create: Session created.
[D] Session state: 3 = [ ✅WS_OPEN ✅CREATED ]
[D] wait_for_notification: Found notification of type 2
[D] chiaki_holepunch_session_create: Client joined.
[D] Session state: 11 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ]
>> Created session
[D] chiaki_holepunch_session_start: Starting session 25900b62-8cb7-4b64-8f66-e78cea093501 for device 00000007000a00c0000102840012000054e5f53b7531cc563e458b95a81ac1a9
[V] http_start_session: Sending JSON:
{"commandDetail":{"commandType":"remotePlay","duid":"00000007000a00c0000102840012000054e5f53b7531cc563e458b95a81ac1a9","messageDestination":"SQS","parameters":{"initialParams":"{\"accountId\":5499938017192405737,\"roomId\":0,\"sessionId\":\"25900b62-8cb7-4b64-8f66-e78cea093501\",\"clientType\":\"Windows\",\"data1\":\"r1BeZY7jkAYsiHKa0xySwQ==\",\"data2\":\"bJlB8I9zVmiAHD5SzcUCvg==\"}"},"platform":"PS5"}}
[V] http_start_session: Received JSON:
{"commandId":"3fc92be0-537b-43fe-b268-fe3b57824015"}
[D] Session state: 27 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ]
[D] wait_for_notification: Waiting for notifications...
[V] websocket_thread_func: Received WebSocket frame of length 783 with flags 1
[V] websocket_thread_func: Received WebSocket frame with 783 bytes of payload.
[V] {
  "version":"2.1",
  "method":3001,
  "dataType":"psn:sessionManager:sys:rps:members:created",
  "to":{
    "accountId":5499938017192405737,
    "onlineId":"streetpea",
    "platform":[
      "REMOTE_PLAY"
    ],
    "isSystemOnly":false,
    "toSystem":false
  },
  "body":{
    "data":{
      "customProperties":{
        "from":{
          "accountId":"5499938017192405737",
          "deviceUniqueId":"00000007000a00c0000102840012000054e5f53b7531cc563e458b95a81ac1a9",
          "onlineId":"streetpea",
          "platform":"PROSPERO"
        }
      },
      "members":[
        {
          "accountId":"5499938017192405737",
          "deviceUniqueId":"00000007000a00c0000102840012000054e5f53b7531cc563e458b95a81ac1a9",
          "joinTimestamp":1712201640561,
          "onlineId":"streetpea",
          "platform":"PROSPERO"
        }
      ],
      "sessionId":"25900b62-8cb7-4b64-8f66-e78cea093501"
    }
  },
  "contexts":[
    {
      "contextId":"d15d8f5b-5215-4642-bd1e-935fb56cb071",
      "sequenceNumber":3
    }
  ]
}
[D] wait_for_notification: Found notification of type 2
[D] Session state: 59 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ✅CONSOLE_JOINED ]
[D] wait_for_notification: Waiting for notifications...
[V] websocket_thread_func: Received WebSocket frame of length 539 with flags 1
[V] websocket_thread_func: Received WebSocket frame with 539 bytes of payload.
[V] {
  "version":"2.1",
  "method":3001,
  "dataType":"psn:sessionManager:sys:rps:customData1:updated",
  "to":{
    "accountId":5499938017192405737,
    "onlineId":"streetpea",
    "platform":[
      "REMOTE_PLAY"
    ],
    "isSystemOnly":false,
    "toSystem":false
  },
  "body":{
    "data":{
      "customData1":"YXpFV1BMQU1WQnp0QUJZVmcwaEFqZz09",
      "customProperties":{
        "from":{
          "accountId":"5499938017192405737",
          "deviceUniqueId":"00000007000a00c0000102840012000054e5f53b7531cc563e458b95a81ac1a9",
          "onlineId":"streetpea",
          "platform":"PROSPERO"
        }
      },
      "sessionId":"25900b62-8cb7-4b64-8f66-e78cea093501"
    }
  }
}
[D] wait_for_notification: Found notification of type 8
[D] Session state: 123 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ✅CONSOLE_JOINED ✅CUSTOMDATA1_RECEIVED ]
>> Started session
[D] wait_for_notification: Waiting for notifications...
[V] websocket_thread_func: Received WebSocket frame of length 1129 with flags 1
[V] websocket_thread_func: Received WebSocket frame with 1129 bytes of payload.
[V] {
  "version":"2.1",
  "method":3001,
  "dataType":"psn:sessionManager:sys:rps:sessionMessage:created",
  "to":{
    "accountId":5499938017192405737,
    "onlineId":"streetpea",
    "platform":[
      "REMOTE_PLAY"
    ],
    "isSystemOnly":false,
    "toSystem":false
  },
  "body":{
    "data":{
      "customProperties":{
        "from":{
          "accountId":"5499938017192405737",
          "deviceUniqueId":"00000007000a00c0000102840012000054e5f53b7531cc563e458b95a81ac1a9",
          "onlineId":"streetpea",
          "platform":"PROSPERO"
        }
      },
      "sessionId":"25900b62-8cb7-4b64-8f66-e78cea093501",
      "sessionMessage":{
        "channel":"remote_play:1",
        "payload":"ver=1.0, type=text, body={\"action\":\"OFFER\",\"reqId\":3,\"error\":0,\"connRequest\":{\"sid\":40754,\"peerSid\":0,\"skey\":\"X2VqybA9Mox9PvzoIhPPrA==\",\"natType\":2,\"candidate\":[{\"type\":\"STATIC\",\"addr\":\"73.120.137.18\",\"mappedAddr\":\"0.0.0.0\",\"port\":9303,\"mappedPort\":0},{\"type\":\"LOCAL\",\"addr\":\"192.168.1.16\",\"mappedAddr\":\"0.0.0.0\",\"port\":9303,\"mappedPort\":0}],\"defaultRouteMacAddr\":\"3c:52:a1:cc:df:18\",\"localPeerAddr\":{\"accountId\":\"5499938017192405737\",\"platform\":\"PROSPERO\"},\"localHashedId\":\"abfFwEAy\/WT3c63fUnbA9XFqkEo=\"}}"
      }
    }
  }
}
[D] wait_for_notification: Found notification of type 16
[E] session_message_parse: Failed to decode localHashedId: 'abfFwEAy/WT3c63fUnbA9XFqkEo='
[E] Failed to parse session message
[E] chiaki_holepunch_session_punch_holes: Failed to wait for OFFER session message.
!! Failed to punch hole for control connection.
