0

I cannot setup my local development environment with Dataform CLI because the creation of the df-credentials.json fails. I follow the steps described here: https://cloud.google.com/dataform/docs/use-dataform-cli (using dataform 3.0.0-beta on a Windows machine). I can install dataform and init a repo. However, when I want setup the connection with

dataform init-creds

and click through the wizard (choosing the Account Default Credentials) method, the wizard fails by just timing out when testing the connection:

Dataform encountered an error: Credentials test connection timed out.
Error: Credentials test connection timed out.

Since no more information is provided its hard to find any clue what is causing this.

Can anyone help? Or does anyone know how the df-credentials.json has to look like so I can create it manually?

Thank you!

1 Answer 1

0

Be sure you've authenticated to Google Cloud using both gcloud auth login and gcloud auth application-default login.

Additionally, check for any misspellings in the billing account it asks you to add as well (I've found it helps to use the project name you intend to do the most Dataform work in).

If using ADC for authentication, the resulting credentials file should look something like this:

{
    "projectId": "my-project",
    "location": "US"
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.