Yelp / yelp-fusion

Yelp Fusion API
https://yelp.com/developers
MIT License
403 stars 394 forks source link

Business location postal_code returning null #673

Closed dylan-hstk closed 2 years ago

dylan-hstk commented 2 years ago

Overview

Description

Hello, I started refactoring a yelp integration today from using the regular API to using the GraphQL API because we wanted to get images and hours directly from the search instead of having to query every business to retrieve that information. Everything was going great until I tried to get the postal_code field and every business seems to be returning null.

More information

You can reproduce this from the GraphiQL in the docs page:

https://www.yelp.com/developers/graphql/objects/location

image

I've tried other locations and they seem to all be returning null for postal_code. Is this something related to my API KEY?

rockdog commented 2 years ago

Hi @dylan-hstk, thanks for reporting this issue.

On the Rest-API this field is returned as zip_code. However in the GraphQL API this field is named postal_code.

I was able to verify its always returning null. I'll be checking the code later but this looks like a bug.

dylan-hstk commented 2 years ago

@rockdog - any timeline available for this bug fix?

Trying to decide if I need to refactor our Yelp integration back to the regular API (and make separate calls for each business to get the information we need) or if GraphQL will be a viable solution.

rockdog commented 2 years ago

@dylan-hstk This issue has been resolved. It did also affect formatted_address.

Thanks again for reporting this.