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
When making a request to the Google Autocomplete API A 500 internal error is being thrown by the when the JSON object is being deserialized. The following properties are required in the PlaceAutocompleteStructuredFormat object:
secondary_text
main_text_matched_substrings
However Google Autocomple API does not always return these properties in the json model, which is causing the 500 internal error.
Environment details
OpenApi version: 1.17.17
PlaceAutocompleteStructuredFormat
Language and framework
Dotnet c#
Steps to reproduce
Request to Google API Autocomplete
Google Autocomple API does not always return a secondary_text or main_text_matched_substrings in the JSON response
When the JSON response is being deserialized a 500 status code error is being thrown
The text was updated successfully, but these errors were encountered:
ghost
added
triage me
I really want to be triaged.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
labels
Sep 9, 2022
Issue
When making a request to the Google Autocomplete API A 500 internal error is being thrown by the when the JSON object is being deserialized. The following properties are required in the PlaceAutocompleteStructuredFormat object:
However Google Autocomple API does not always return these properties in the json model, which is causing the 500 internal error.
Environment details
Language and framework
Steps to reproduce
Code example
try { return JsonConvert.DeserializeObject(response.Content, type, _serializerSettings); } catch (Exception e) { throw new ApiException(500, e.Message); } }
Stack trace
The text was updated successfully, but these errors were encountered: