Geta / geta-optimizely-genericlinks

An extensive alternative to LinkItemCollection in Optimizely.
Apache License 2.0
4 stars 0 forks source link

Error when adding property values in "create mode" #7

Closed marijorg closed 2 years ago

marijorg commented 2 years ago

How to reproduce

Block will fail to be created and the following error can be retrieved from network tab:

System.NotSupportedException: Specified method is not supported. The unsupported member type is located on type 'Geta.Optimizely.GenericLinks.LinkDataCollection1[Skeidar.Web.Infrastructure.Properties.ThumbnailLinkData]'. Path: $[0] | LineNumber: 0 | BytePositionInLine: 2. ---> System.NotSupportedException: Specified method is not supported. at Geta.Optimizely.GenericLinks.Converters.Json.SystemTextLinkDataConverter1.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TCollection& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)

image

svenrog commented 2 years ago

See if version 1.3.4 works better. I've added read functionality that will mitigate the error.

marijorg commented 2 years ago

Fix confirmed, closing issue.