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

Fix /list-workflows endpoint #169

Open
botanical opened this issue Jun 18, 2024 · 1 comment
Open

Fix /list-workflows endpoint #169

botanical opened this issue Jun 18, 2024 · 1 comment

Comments

@botanical
Copy link
Member

Context

In some stacks, like mcp-test, when you try to use the /list-workflows endpoint, you get an Internal Server Error. The logs indicate that the function isn't returning a dict

{'loc': ('response',), 'msg': 'value is not a valid dict', 'type': 'type_error.dict'}

Upon investigation, the function was returning an encoded dict and the decoded stderr said:

Error: Failed to load all files. For details, run `airflow dags 
list-import-errors`

Acceptance Criteria

  • Endpoint is fixed
  • Error messaging is added if there is an error so it's easier to debug/handle
@ividito
Copy link
Contributor

ividito commented Jun 19, 2024

Got blocked by #170 trying to debug this. If you're able to authenticate, I would try running dags list-import-errors using the cli-input endpoint (MWAA requires us to remove the airflow prefix for the CLI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants