Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for Errors in API Return Before Trying to Parse #227

Open
dshanske opened this issue Jul 22, 2022 · 1 comment
Open

Check for Errors in API Return Before Trying to Parse #227

dshanske opened this issue Jul 22, 2022 · 1 comment
Labels
bug provider Provider Related

Comments

@dshanske
Copy link
Owner

https://wordpress.org/support/topic/json-parsing-continues-on-payload-with-error/ - Not only check for errors, surface them to help for issues in the return.

Undefined variable: country_code in class-geo-provider-google.php on line 183
Undefined variable: number in class-geo-provider-google.php on line 184
Undefined variable: street in class-geo-provider-google.php on line 184
Undefined variable: street in class-geo-provider-google.php on line 189
Undefined index: country-code in class-location-taxonomy.php on line 651
{"raw":{"error_message":"API keys with referer restrictions cannot be used with this
API.","results":[],"status":"REQUEST_DENIED"}....

@dshanske dshanske added bug provider Provider Related labels Jul 22, 2022
@dshanske
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug provider Provider Related
Projects
None yet
Development

No branches or pull requests

1 participant