-
Notifications
You must be signed in to change notification settings - Fork 647
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
GCS - Object is missing required member 'access_token' #2080
Comments
Thanks for reporting this and #2057. I created a PR that addresses #2057 and will enable retries for any known server error code (5xx).
Are you suggesting the implementation to get the access token needs to handle a error responses instead of just |
Yes, from the error we see that the request clearly failed to return a valid response, my guess is that it also returned 5xx adding a response code check + same retry logic in both above files should reduce the error rate |
currently #2082 is not fixing this issue |
I see. It seems reasonable to assume that the unmarshalling step is what's causing the exception, but I agree it's odd that it's not in the stack trace. Would you be open to troubleshooting this further, or working on a PR? We should find a way to reproduce it with a mock in our tests. |
Will see if I find the time during the coming days |
Alpakka
2.0.0-M2
We sporadically see this error in our logs, the auth token handling is not handling error responses correctly. In this case a retry should be done like in #2057 and #1931
alpakka/google-cloud-storage/src/main/scala/akka/stream/alpakka/googlecloud/storage/impl/GoogleTokenApi.scala
Lines 53 to 54 in f420069
Also apply to the
google-cloud-pub-sub
modulealpakka/google-cloud-pub-sub/src/main/scala/akka/stream/alpakka/googlecloud/pubsub/impl/GoogleTokenApi.scala
Lines 54 to 55 in f420069
Also the trace for this error does not show it is related to alpakka?
The text was updated successfully, but these errors were encountered: