#Payload field mapping error

1 messages · Page 1 of 1 (latest)

woeful gyro
#

Hi,

Could someone shed some light on this error, which happens when mapping the JSON strucure attached. Which field is in error here and how is this error constructed ?

Thanks.

time=2025-06-01T02:07:48.026+02:00 level=INFO module=isabelle/weatheragent message="error PayloadBindingClientError (\"Payload binding failed: invalid type for field \'playlists.next.previous.items.description.external_urls.images.height.width.owner.external_urls.primary_color.tracks\'\",error Error (\"invalid type for field \'playlists.next.previous.items.description.external_urls.images.height.width.owner.external_urls.primary_color.tracks\'\"))"
woeful gyro
#

Hi - I found the issue.. As you can see in the JSON , the items record has items and nulls. So I had to change the type to Items?[] items to accomodate that. You can reproduce the error by using this code : https://github.com/isamauny-wso2/MusicForWeather and remove the ? from the ItemsItem type field in the Playlists record. Still does not explain the error returned though...

GitHub

This application recommends Spotify playlists based on the current weather at your location. - isamauny-wso2/MusicForWeather

shy lake
#

There seems to be an issue with the error message. We'll look into this.

cc @tropic girder @vale charm