Stormancer / plugins

Open source plugins for Stormancer applications
MIT License
1 stars 2 forks source link

Errors updating the Steam lobby when the party leader left. #15

Open jmderuty opened 1 week ago

jmderuty commented 1 week ago
{
  "message": "Steam lobby join failed",
  "data": {
    "content": {
      "location": "scenes/party/party-6708236e-7930-46c5-9f46-c51253959008#0",
      "context": {
        "template": "party",
        "sceneId": "party-6708236e-7930-46c5-9f46-c51253959008",
        "shardId": 0
      },
      "message": "Steam lobby join failed",
      "data": {
        "ErrorId": "steam.joinLobbyFailed(NotAllowed)",
        "ErrorDetails": "steam.joinLobbyFailed(NotAllowed)"
      }
    },
    "app": "/darktales/live-1-0/33e68d95-f3ea-4a81-aae8-645b4a0413aa/27?"
  }
}
{
  "message": "Steam lobby join failed",
  "data": {
    "content": {
      "location": "scenes/party/party-d535eed3-3bd2-4cba-9e33-5a0c2b5fadc0#0",
      "context": {
        "template": "party",
        "sceneId": "party-d535eed3-3bd2-4cba-9e33-5a0c2b5fadc0",
        "shardId": 0
      },
      "message": "Steam lobby join failed",
      "data": {
        "ErrorId": "Steam request lobby data failed (success == false)",
        "ErrorDetails": "Steam request lobby data failed (success == false)"
      }
    },
    "app": "/darktales/live-1-0/33e68d95-f3ea-4a81-aae8-645b4a0413aa/27?"
  }
}
{
  "message": "Steam lobby set joinable failed",
  "data": {
    "content": {
      "location": "scenes/party/party-acfd04ff-2e97-44d6-a2a9-d49ab63a99dd#0",
      "context": {
        "template": "party",
        "sceneId": "party-acfd04ff-2e97-44d6-a2a9-d49ab63a99dd",
        "shardId": 0
      },
      "message": "Steam lobby set joinable failed",
      "data": {
        "ErrorId": "",
        "ErrorDetails": "Steam::SetLobbyJoinable Api call failed : Player doesn't own the lobby"
      }
    },
    "app": "/darktales/live-1-0/33e68d95-f3ea-4a81-aae8-645b4a0413aa/27?"
  }
}
jmderuty commented 1 week ago

In these situations, the plugin should try to refresh the owner of the lobby before retrying.

jmderuty commented 6 days ago

This log can be generated in a loop and provoque resource exhaustion on the server.

{
    "id": null,
    "deploymentId": null,
    "level": 1,
    "category": "***.SteamPartyEventHandler.SetLobbyJoinableAsync",
    "content": {
      "message": "Steam lobby set joinable failed",
      "data": {
        "content": {
          "location": "scenes/party/party-683ff42a-05a2-4eb4-a43e-cc657df16740#0",
          "context": {
            "template": "party",
            "sceneId": "party-683ff42a-05a2-4eb4-a43e-cc657df16740",
            "shardId": 0
          },
          "message": "Steam lobby set joinable failed",
          "data": {
            "errorId": "",
            "errorDetails": "Steam::SetLobbyJoinable Api call failed : Player doesn't own the lobby"
          }
        },
        "app": "/darktales/live-1-0/33e68d95-f3ea-4a81-aae8-645b4a0413aa/27?"
      }
    },
    "createdOn": "2024-09-29T18:11:01.5260074Z",
    "node": "5w0GiaMkGUuN+QnuOyHTKQ",
    "accountId": null,
    "application": null,
    "message": null,
    "hostId": null,
    "isActiveDeployment": false,
    "tags": []
  }