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

Handle http errors of create episode request #1

Open
gazdagergo opened this issue May 28, 2023 · 0 comments
Open

Handle http errors of create episode request #1

gazdagergo opened this issue May 28, 2023 · 0 comments

Comments

@gazdagergo
Copy link
Member

When sending graphql mutation POST request to hygraph, we have to handle the "non-happy" path as well. If the creation of the new episode was unsuccessful for some reason

  • we have to log it into the db (adding a new field first for errors)
  • we have to keep the txt file instead of removing

To achieve this we have to bubble up the error and do not let the scheduler run the upcoming commands. We have to move the filne into en "error" subfolder of the output folder to avoid re-triggering the transcript processing.

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

1 participant