Fatal error: Uncaught TypeError: Given value is not an instance of Google\Protobuf\Any. in ...google/common-protos/src/Rpc/Status.php:64
From the fetch logs I see call fault:
Fault
-------
Status code: 7
Details: The caller does not have permission
Failure: {"errors":[{"errorCode":{"authorizationError":"CUSTOMER_NOT_ENABLED"},"message":"The customer can't be used because it isn't enabled."}],"requestId":"Pn8ta2UONRLjpkCqgIPQtA"}
And my question is how can I check that customer is enabled with separate API call may be?
I take customers list from $customerServiceClient->listAccessibleCustomers() response. I get 19 customers ids as response and 2 of them are 'not enabled'. Can provide account details in private message. Basically I'm interested in info how can I catch this error preventively.
Thanks in advance!
Oksana
|
||||||
|
||||||