Automattic / Automattic/knox

getFile callback called more than once

Open
#302 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.7k
Forks
283
PR merge metrics
No merged PRs in 30d

Description

I am seeing an odd behaviour where the callback is being fired more than once. This happens when the getFile request produces an 'Error: read ECONNRESET'. I've ran this multiple times and I get the same behaviour. I have also asked a question about it on stack overflow that has more detailed information about it. It is [here](http://stackoverflow.com/questions/36989824/async-retry-callback-already-called)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the getFile entry point and reproduce the reported Error: read ECONNRESET case, using the linked Stack Overflow discussion for the detailed scenario. Trace the error path and callback invocations; done means the callback fires exactly once when this request fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.