Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RetryMiddleware uses CredentialsWrapper scope when invoked #586

Open
pkruithof opened this issue Sep 17, 2024 · 3 comments
Open

RetryMiddleware uses CredentialsWrapper scope when invoked #586

pkruithof opened this issue Sep 17, 2024 · 3 comments

Comments

@pkruithof
Copy link

The RetryMiddleware triggers a fatal error in some conditions: Call to undefined method Google\ApiCore\CredentialsWrapper::getRetryFunction()

The issue is caused when the middleware is invoked, seemingly with the scope of the CredentialsWrapper, causing the getRetryFunction() method not to be found in the class. I've tried to extract this portion of the client trait into a reproducible script, but that does not trigger the error unfortunately.

Environment details

  • OS: Linux (on Docker)
  • PHP version: 8.3.7
  • Package name and version: google/gax

Steps to reproduce

I cannot reproduce it with a short script, however we occasionally have issues popping up in Sentry about this. I hope this information provides more insights into why this is happening.

Screenshot 2024-09-17 at 09 28 47

@aa-dragosmocrii
Copy link

I am running into the same issue. Were you able to fix this?

@pkruithof
Copy link
Author

Unfortunately not, hopefully someone at Google notices this 🤞

@ottaz
Copy link

ottaz commented Dec 6, 2024

Also having this issue. Does anyone have a workaround?

EDIT: 2024-12-10-0946
I seem to only have this problem when,

If I use Topic::publish with no additional parameters, it does not happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants