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
Describe the bug
I'm currently trying to fetch open graph data from an URL as mentioned in stream_feed's documentation we can use client.og(previewUrl) method to fetch open graph data https://getstream.io/activity-feeds/docs/flutter-dart/open_graph_scraping/?language=dart&q=client.og
If I look inside the OpenGraphData model the height and width property of OgImage and OgVideo model are marked as String? type but in the API response both values are of integer type due to which whenever there is a height and width value received in API response error is thrown while parsing those due to type mismatch.
Here is the log of the error _message: "Expected a value of type 'String?', but got one of type 'int'"
What version of Flutter do you use?
3.7.0
What package are you using? What version?
stream_feed_flutter_core
What platform is it about?
Android
iOS
Web
Windows
MacOS
Linux
To Reproduce
Try to fetch metadata of URLs which have height and width property in response
one example for it is https://google.com
Expected behavior
There should be consistency between API response and models created on frontend, most probably height and width should be of type int? so changes most probably be needed on frontend side to fix the issue
The text was updated successfully, but these errors were encountered:
Possible Fix would be correcting type of width and height in OpenGraphModel
using int? width, and int? height instead of String? height, String? width.
Describe the bug
I'm currently trying to fetch open graph data from an URL as mentioned in stream_feed's documentation we can use
client.og(previewUrl)
method to fetch open graph data https://getstream.io/activity-feeds/docs/flutter-dart/open_graph_scraping/?language=dart&q=client.ogIf I look inside the OpenGraphData model the height and width property of
OgImage
andOgVideo
model are marked as String? type but in the API response both values are of integer type due to which whenever there is a height and width value received in API response error is thrown while parsing those due to type mismatch.Here is the log of the error
_message: "Expected a value of type 'String?', but got one of type 'int'"
What version of Flutter do you use?
3.7.0
What package are you using? What version?
stream_feed_flutter_core
What platform is it about?
To Reproduce
Try to fetch metadata of URLs which have height and width property in response
one example for it is https://google.com
Expected behavior
There should be consistency between API response and models created on frontend, most probably height and width should be of type int? so changes most probably be needed on frontend side to fix the issue
The text was updated successfully, but these errors were encountered: