Better error message while getting an invalid dictionary #432
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Is this a client library issue or a product issue? We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the Support page to reach the most relevant engineers.
If the support paths suggested above still do not result in a resolution, please provide the following details.
Environment details
Steps to reproduce
python file_name.py
, one gets the following error messageIt is true that it's the code itself that's problematic (users should use {"given_name": "john", "family_name": "scott"}) but from the error message, it's really hard to realize what was wrong especially when a proto object has many nested proto objects. It would be nice to be clear about 1) what is the field that's causing this issue (in this case, it's the Composer that's problematic, not the Song) 2) what the user is using to initialize that field ("john scott" is the user input, but we expect a dict here).
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: