Skip to content

Game SDK ClearActivity fails with error code 5 (InvalidPayload) #6612

Open
@x157

Description

@x157

Description

As of SDK 3.2.1, after setting an Activity, later trying to ClearActivity results in the following internal Discord error:

ResponseError { code: InvalidPayload, message: "child \"activity\" fails because [child \"supported_platforms\" fails because [\"supported_platforms\" must contain at least 1 items]]" }

This error was previously reported in Feb 2021 in the now-retired gamesdk-and-dispatch repository.

Steps to Reproduce

Update some activity:

discord::Activity Activity {};
// Set up Activity settings here (omitted for brevity, this part is not the problem)
DiscordCore().ActivityManager().UpdateActivity(Activity, [] (discord::Result Result) {});

Then try to ClearActivity:

DiscordCore().ActivityManager().ClearActivity([] (discord::Result Result) {});

Expected Behavior

I expect that ClearActivity() will actually clear the activity without generating an error.

Current Behavior

  • The activity does not get cleared
  • An internal Discord error message is issued complaining that supported_platforms is not set

Screenshots/Videos

No response

Client and System Information

Win64 UE 5.3 DiscordGameSample project with Discord GameSDK 3.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions