- Issue created by @Christian DeLoach
- πΊπΈUnited States tzura
https://www.drupal.org/project/vertex_ai_search/issues/3525837 π¬ Is gRPC a new dependency? Active
There is an issue with PHP8.3 and the gRPC extension. I ran into this in a new environment where the gRPC extension was installed.
If gRPC is supported, then that will be used first. If not, then it uses REST. We hadn't encountered this issue until working in an environment where the gRPC extension was actually installed. So we added the option.
Perhaps the REST option should be the default instead.
- πΊπΈUnited States tzura
_Error_: Maximum call stack size of 10436608 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion? in _Google\ApiCore\CredentialsWrapper->Google\ApiCore\{closure}()_ (line _244_ of _/var/www/html/vendor/google/gax/src/CredentialsWrapper.php_)
...this was the error we were seeing.
- πΊπΈUnited States Christian DeLoach
Thank you timozura for the quick response!
I looked at the updates in https://www.drupal.org/project/vertex_ai_search/issues/3524005 π Conflict with PHP8.3 and gRPC Extension Active and I think I now understand what happened. Previously, the transport argument in DataStoreServiceClient defaulted to "None" which would allow the API to automatically choose the transport.
Consider adding an "Auto" option to the Transport Options field and default the new Transport Options field to "Auto". If the field is set to "Auto" pass "None" to DataStoreServiceClient. That way if the Transport Options is not set following the module upgrade, the search works the way it did before, allowing DataStoreServiceClient to choose the transport.
Also, consider changing
$transport = $values['transport_method'] ?? 'grpc';
to
$transport = $values['transport_method'] ?? 'None';
Thank you again!
- Merge request !32Issue 3525837: Changing Transport default to NULL and adding Auto Transport option. β (Merged) created by tzura
Automatically closed - issue fixed for 2 weeks with no activity.