thenewboston-developers/thenewboston-Backend

TypeError tasks.sync_contributions

Closed this issue · 1 comments

@buckyroberts this is not a real bug, but a kind of expected behavior. It happens when OpenAI API does not respond with proper JSON we expect. I understand that we might what to have Sentry less noisy and give a better information about the issue. And we should probably work on it. It is already logged as WARNING (not as ERROR / exception). One thing we can do is to add a little bit more code, so it clearly logs that OpenAI API did not return expected JSON object, but still report it as warning to Sentry. I suggest to keep reporting to Sentry as warning, so we can see how many of them are there and act on it in case it happens to excess some gut feeling threshold