firebase / firebase/firebase-admin-python

Connection aborted in google/oauth2 affecting firebase

Aperta
#794 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
api: core
Lingua principale
Python
Stelle
1.2k
Fork
359
Merge medio
5g 6m
PR unite (30g)
2

Descrizione

Connection aborted didn't included in retryable list and any firebase API calls fails frequently.

```shell
Traceback (most recent call last):
File "/usr/src/app/notifications/services/notification_service/providers/mobile.py", line 94, in _send_notification
firebase.send(fb_message, app=firebase_app)
File "/usr/local/lib/python3.10/site-packages/firebase_admin/messaging.py", line 121, in send
return _get_messaging_service(app).send(message, dry_run)
File "/usr/local/lib/python3.10/site-packages/firebase_admin/messaging.py", line 411, in send
resp = self._client.body(
File "/usr/local/lib/python3.10/site-packages/firebase_admin/_http_client.py", line 131, in body
resp = self.request(method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/firebase_admin/_http_client.py", line 118, in request
resp = self._session.request(method, self.base_url + url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/google/auth/transport/requests.py", line 577, in request
self.credentials.refresh(auth_request)
File "/usr/local/lib/python3.10/site-packages/google/oauth2/service_account.py", line 445, in refresh
access_token, expiry, _ = _client.jwt_grant(
File "/usr/local/lib/python3.10/site-packages/google/oauth2/_client.py", line 308, in jwt_grant
response_data = _token_endpoint_request(
File "/usr/local/lib/python3.10/site-packages/google/oauth2/_client.py", line 268, in _token_endpoint_request
response_status_ok, response_data, retryable_error = _token_endpoint_request_no_throw(
File "/usr/local/lib/python3.10/site-packages/google/oauth2/_client.py", line 215, in _token_endpoint_request_no_throw
request_succeeded, response_data, retryable_error = _perform_request()
File "/usr/local/lib/python3.10/site-packages/google/oauth2/_client.py", line 191, in _perform_request
response = request(
File "/usr/local/lib/python3.10/site-packages/google/auth/transport/requests.py", line 192, in __call__
raise new_exc from caught_exc
google.auth.exceptions.TransportError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.