main: steps: - init: assign: - repository: projects/<gcp_project_name>/locations/<dataform_repo_location>/repositories/<dataform_default_repo_name> - createCompilationResult: try: call: http.post args: url: ${"https://dataform.googleapis.com/v1beta1/" + repository + "/compilationResults"} auth: type: OAuth2 body: gitCommitish: main result: compilationResult except: as: e steps: - known_errors: switch: - condition: ${not("HttpError" in e.tags)} return: "Connection problem." - condition: ${e.code == 404} return: "Sorry, URL wasn't found." - condition: ${e.code == 403} return: "Authentication error." - unhandled_exception: raise: ${e} - createWorkflowInvocation: try: call: http.post args: url: ${"https://dataform.googleapis.com/v1beta1/" + repository + "/workflowInvocations"} auth: type: OAuth2 body: compilationResult: ${compilationResult.body.name} invocationConfig: fullyRefreshIncrementalTablesEnabled: false includedTags: ["ga4"] includedTargets: [] transitiveDependenciesIncluded: true transitiveDependentsIncluded: false result: workflowInvocation except: as: e_execute steps: - known_errors_execute: switch: - condition: ${not("HttpError" in e_execute.tags)} return: "Connection problem." - condition: ${e_execute.code == 404} return: "Sorry, URL wasn't found." - condition: ${e_execute.code == 403} return: "Authentication error." - unhandled_exception_execute: raise: ${e_execute} - complete: return: ${workflowInvocation.body.name + " complete"}
HTTP server responded with error code 400 in step "unhandled_exception", routine "main", line: 33 { "body": { "error": { "code": 400, "message": "NPM Execution error: npm ERR! code EUSAGE\nnpm ERR! \nnpm ERR! The `npm ci` command can only install with an existing package-lock.json or\nnpm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or\nnpm ERR! later to generate a package-lock.json file, then try again.\nnpm ERR! \nnpm ERR! Clean install a project\nnpm ERR! \nnpm ERR! Usage:\nnpm ERR! npm ci\nnpm ERR! \nnpm ERR! Options:\nnpm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]\nnpm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]\nnpm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]\nnpm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]\nnpm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]\nnpm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]\nnpm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]\nnpm ERR! \nnpm ERR! aliases: clean-install, ic, install-clean, isntall-clean\nnpm ERR! \nnpm ERR! Run \"npm help ci\" for more info\n\nnpm ERR! Log files were not written due to the config logs-max=0\n", "status": "FAILED_PRECONDITION" } }, "code": 400, "headers": { "Alt-Svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000", "Cache-Control": "private", "Content-Length": "1316", "Content-Type": "application/json; charset=UTF-8", "Date": "Wed, 03 May 2023 12:46:50 GMT", "Server": "ESF", "Vary": "Origin", "X-Content-Type-Options": "nosniff", "X-Frame-Options": "SAMEORIGIN", "X-Xss-Protection": "0" }, "message": "HTTP server responded with error code 400", "tags": [ "HttpError" ] }
HTTP server responded with error code 500
in step "unhandled_exception", routine "main", line: 33
{
"body": {
"error": {
"code": 500,
"message": "An internal error has occurred",
"status": "INTERNAL"
}
},
"code": 500,
"headers": {
"Alt-Svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
"Cache-Control": "private",
"Content-Length": "151",
"Content-Type": "application/json; charset=UTF-8",
"Date": "Wed, 03 May 2023 14:34:44 GMT",
"Server": "ESF",
"Vary": "Origin",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "SAMEORIGIN",
"X-Xss-Protection": "0"
},
"message": "HTTP server responded with error code 500",
"tags": [
"HttpError"
]
}
Solved! Go to Solution.
problem solved!! Dataform repo name needs to be the same as GitHub repo name.