question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ApiCallError - OSError("(104, 'ECONNRESET')")

See original GitHub issue

Hi, I’m a script on an amazon EC2 with operating system Ubuntu Server 18.04 LTS (HVM). Firebase SDK version: 2.14.0 Python version: 3.7 Firebase product: database

once in 12-48 hours while i try to use a noraml .get() command on different parts of my code i get the following exception:

ApiCallError
('Connection aborted.', OSError("(104, 'ECONNRESET')"))
event:   File "/home/script.py", line 29, in script
    database.reference('data').order_by_child('parameters/name').get()
  File "/usr/local/lib/python3.7/site-packages/firebase_admin/db.py", line 612, in get
    result = self._client.body('get', self._pathurl, params=self._querystr)
  File "/usr/local/lib/python3.7/site-packages/firebase_admin/_http_client.py", line 93, in body
    resp = self.request(method, url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/firebase_admin/db.py", line 884, in request
    raise ApiCallError(_Client.extract_error_message(error), error)

sometimes it happens with order_by_child get and sometimes on a normal get.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hiranya911commented, Jan 17, 2019

Now that #247 is merged, future versions of the SDK will automatically retry upon IO errors.

0reactions
ArielS1commented, Jan 26, 2019

Actually i got now the same exception after less than 24 hours from the last time, so maybe it’s more frequent than i tought

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSError("(104, 'ECONNRESET')") What is causing this error?
I am developing an automated trading program. I am using python-binance and telepot. At first, after a certain amount of time, ...
Read more >
Error: Connection aborted, 'ECONNRESET', 104 - Websocket
Q: Why I'm getting an error message with 'ECONNRESET'? For example in Python: ('Connection aborted.', OSError("(104, )",)).
Read more >
Graph API | Error - Microsoft Q&A
OSError ("(104, 'ECONNRESET')")). I have 3 scripts running so I guess on avg 180 api calls/sec for create users (/users : POST).
Read more >
Python 'ECONNRESET', ChunkedEncodingError and ...
Hi, I'm using the v2 streaming API like this: request = requests.get('?expansions=author_id&tweet.fields=context_annotations,created_at ...
Read more >
'Connection aborted.', OSError("(104, 'ECONNRESET')"
We are getting zendesk data via api with zdesk. Recently we are getting this connection error frequently: 'Connection aborted.',...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found