Search code examples
google-oauthgoogle-cloud-dataflowapache-beamgoogle-authentication

DataFlow :missing required authentication credential


I am getting following error while running DataFlow pipeline

Error reporting inventory checksum: code: "Unauthenticated", message: "Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication credential.

We have created service account [email protected] with following roles

BigQuery Data Editor
Cloud KMS CryptoKey Decrypter
Dataflow Worker
Logs Writer
Monitoring Metric Writer
Pub/Sub Subscriber
Pub/Sub Viewer
Storage Object Creator

And in our python code we are using import google.auth

Any idea what am I missing here ?

I do not believe I need to create key for SA , however I am not sure if "OAuth 2 access token" for SA need to be created ? If yes how ?


Solution

  • This was the issue in my case https://cloud.google.com/dataflow/docs/guides/common-errors#lookup-policies