logtail-python icon indicating copy to clipboard operation
logtail-python copied to clipboard

Flusher fails to log: AttributeError: 'Response' object has no attribute 'exception'

Open nsbradford opened this issue 1 year ago • 2 comments

logtail/flusher.py in step() at line 68

            if response.status_code == 500 and getattr(response, "exception") != None:
                print('Failed to send logs to Better Stack after {} retries: {}'.format(len(RETRY_SCHEDULE), response.exception))

nsbradford avatar Jun 11 '24 21:06 nsbradford

Hey @nsbradford,

Thank you for raising this!

I'm passing this on to the team to reproduce and fix this.

Could you share steps on how to reproduce the issue? 🙏 It would help us fix this faster.

Thank you for the report!

curusarn avatar Jun 13 '24 09:06 curusarn

can't reliably reproduce, just happens occasionally 😅

nsbradford avatar Jul 12 '24 03:07 nsbradford