You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by a customer: await Services.Announcements.GetCurrent(); in C#MS code throws a Newtonsoft.Json.JsonSerializationException saying Error converting value "Rewards" to type 'Beamable.Common.Content.OptionalString'. Path 'announcements[2].gift.description'
Similar code works fine in Unity client code, and players are able to claim rewards from Announcements, but things blow up when C#MS code tries to read Announcements with rewards.
To Reproduce
Steps to reproduce the behavior:
Create an Announcement with rewards on it somehow (could be Content, could be a Messaging Campaign)
Write a ClientCallable that uses Services.Announcements.GetCurrent();
Invoke the ClientCallable
Expected behavior
Announcements.GetCurrent() returns a list of announcement data objects, some of which contain reward descriptions.
Actual behavior
An exception is thrown from somewhere inside GetCurrent()
Metadata
SDK version: Beamable Unity SDK 1.19.17
The text was updated successfully, but these errors were encountered:
Describe the bug
Reported by a customer:
await Services.Announcements.GetCurrent();
in C#MS code throws a Newtonsoft.Json.JsonSerializationException sayingError converting value "Rewards" to type 'Beamable.Common.Content.OptionalString'. Path 'announcements[2].gift.description'
Similar code works fine in Unity client code, and players are able to claim rewards from Announcements, but things blow up when C#MS code tries to read Announcements with rewards.
To Reproduce
Steps to reproduce the behavior:
Services.Announcements.GetCurrent();
Expected behavior
Announcements.GetCurrent()
returns a list of announcement data objects, some of which contain reward descriptions.Actual behavior
An exception is thrown from somewhere inside GetCurrent()
Metadata
The text was updated successfully, but these errors were encountered: