rapidwebltd / php-google-people-api

👥 This package provides a user friendly way of interacting with Google Contacts via the Google People API.
GNU Lesser General Public License v3.0
100 stars 39 forks source link

New contact has stopped working #27

Closed lukasokoun closed 4 years ago

lukasokoun commented 4 years ago

Yesterday, creating a new contact with the error suddenly stopped working: `PHP Fatal error: Uncaught exception 'Exception' with message '{ "error": { "code": 400, "message": "Invalid JSON payload received. Unknown name \"parent\": Cannot bind query parameter. Field 'parent' could not be found in request message.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [ { "description": "Invalid JSON payload received. Unknown name \"parent\": Cannot bind query parameter. Field 'parent' could not be found in request message." } ] } ] } } ' in /var/www/moduly/google/kontakty/vendor/rapidwebltd/php-google-people-api/src/GooglePeople.php:132 Stack trace:

0 /var/www/moduly/google/kontakty/vendor/rapidwebltd/php-google-people-api/src/Contact.php(16): RapidWeb\GooglePeopleAPI\GooglePeople->save(Object(RapidWeb\GooglePeopleAPI\Contact))

1 /var/www/ttt.php(24): RapidWeb\GooglePeopleAPI\Contact->save()

2 {main}

thrown in /var/www/moduly/google/kontakty/vendor/rapidwebltd/php-google-people-api/src/GooglePeople.php on line 132 `

However, updating the existing contract works!

nantoniadis commented 4 years ago

I am having the same problem. Something must have changed to the API.

DivineOmega commented 4 years ago

This looks like a duplicate of #25. If so, this is now fixed.

Make sure you're on v1.0.1 of this package and try again.

lukasokoun commented 4 years ago

yes it is it, thank you very much!