HelloFro / yelp_fusion_client

A Dart Client to access the endpoints of Yelp Fusion API.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

fetchBusinessSearch image_url always returned Null when asObject is True. Returns correctly when false #10

Closed McCossum closed 2 years ago

McCossum commented 2 years ago

Using fetchBusinessSearch the image_url field is always null when running is object. Switching it over to JSON returns the expected parameters.

HelloFro commented 2 years ago

Hello @McCossum, I ran a few tests covering this bug, but was unable to recreate. Can you provide me with more detailed information about the parameters you were using when calling fetchBusinessSearch? Screenshots of the error or the exact parameters should help with triaging this issue.

Adam-D-Lewis commented 2 years ago

Here's a reproducible example showing this bug. image image

HelloFro commented 2 years ago

Here's a reproducible example showing this bug. image image

Thanks for providing these screenshots! @Adam-D-Lewis

I believe I have figured out what is causing the bug and will hotfix it shortly.

cc @McCossum