google-cloud-dataflowjwtgoogle-cloud-data-fusiongoogle-iapcdap

CDAP DataFusion GET Pipeline Runs Invalid IAP Credentials Error


I am trying to do a GET API call to get specific pipeline run history. The API URL is as follows

APIEndpoint/api/v3/namespaces/default/apps/DataPipeline_name/workflows/DataPipelineWorkflow/runs?limit=1

This API call needs a access token which I get by the command line gcloud print-access-token The above works fine on a Basic Edition

When I run this on enterprise edition instance, I get the following error Invalid IAP Credentials: Expected JWT to have 3 parts separated by '.' but there are 2 parts

I need help here as to how I make this CDAP API call successfully.


Solution

  • I'm not sure what caused the problem. But now it is working absolutely fine. Maybe the permissions were an issue / there was something changed on the GCP Project.

    Thanks for all your answers. Those make complete sense to check