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

Add better error logging when calling BigQuery insert API on error #78

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

asatwal
Copy link
Collaborator

@asatwal asatwal commented Jun 27, 2023

Trello-1253

Currently when doing a full import on the Teaching Vacancies App, calls to the BigQuery insert API are failing.

There are very few clues in the error logs as to which events are causing the failures. As the full import calls the BigQuery insert API in batches of 500, it's also very difficult to pinpoint the event causing the failure.

This PR adds better error logging when calling the API and logs the events causing the failures also.

@asatwal asatwal requested a review from duncanjbrown June 27, 2023 20:29
@asatwal asatwal self-assigned this Jun 27, 2023
@asatwal asatwal force-pushed the log-event-on-failed-api-call branch from 6164eb1 to dad72ce Compare June 28, 2023 09:07
Copy link
Contributor

@duncanjbrown duncanjbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@asatwal asatwal merged commit 6433de9 into main Jun 28, 2023
@asatwal asatwal deleted the log-event-on-failed-api-call branch June 28, 2023 11:17
@scruti
Copy link
Contributor

scruti commented Jul 4, 2023

Coming late to the party to say thank you for how quickly actioned this 👏

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

Successfully merging this pull request may close these issues.

3 participants