logtail / logtail-python

Better Stack Python client
https://betterstack.com/logs
Other
36 stars 10 forks source link

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

Open nsbradford opened 4 months ago

nsbradford commented 4 months ago

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))
curusarn commented 4 months ago

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!

nsbradford commented 3 months ago

can't reliably reproduce, just happens occasionally 😅