Skip to content
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

docs: sample needs to pass an execution argument #3109

Closed
camiekim opened this issue Apr 6, 2023 · 0 comments · Fixed by #3199
Closed

docs: sample needs to pass an execution argument #3109

camiekim opened this issue Apr 6, 2023 · 0 comments · Fixed by #3199
Assignees
Labels
api: workflows Issues related to the Workflows API. samples Issues that are directly related to samples.

Comments

@camiekim
Copy link
Contributor

camiekim commented Apr 6, 2023

Per b/276737524

I had to modify index.js as follows to avoid running into an "argument of 'in' must be a dict or an array" error when running the default workflow documented in https://cloud.google.com/workflows/docs/executing-workflow:

  // Execute workflow
  try {
    const createExecutionRes = await client.createExecution({
      parent: client.workflowPath(projectId, location, workflow),
      execution: {
        argument: JSON.stringify({})
      }
    });
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Apr 6, 2023
@kweinmeister kweinmeister added the api: workflows Issues related to the Workflows API. label Apr 7, 2023
@iennae iennae assigned iennae and unassigned averikitsch May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: workflows Issues related to the Workflows API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants