expo-community / expo-server-sdk-python

Exponent Server SDK
MIT License
143 stars 42 forks source link

getting (ConnectionError, HTTPError) and no retries #54

Open salihboshnak opened 1 year ago

salihboshnak commented 1 year ago

Hi there

i am using this library to send notification to my clients sometimes i get the following error

except (ConnectionError, HTTPError) as exc:
    # Encountered some Connection or HTTP error - retry a few times in
    # case it is transient.
    rollbar.report_exc_info(
        extra_data={'token': token, 'message': message, 'extra': extra})
    raise self.retry(exc=exc)

but AFAIU in this case there should be retires

but my clients claim they did not get the notification at all

can you please help finding a way to do retries

julianpacker commented 1 year ago

I can't say for sure, but I left a comment in my code about a year ago saying "this usually happens because we are making too many requests from the same IP"

and then I waited 5 seconds before trying again.

Hopefully that helps

julianpacker commented 1 year ago

https://docs.expo.dev/push-notifications/sending-notifications/#push-receipt-errors