After gitmoji-cli installation, when I run the gitmoji -l command the following error is returned:
ERROR: Network connection not found - ECONNABORTED
ERROR: gitmoji list not found - undefined
I changed the gitmoji.js file at line 205 to view more details about the Network connection not found error, and I discovered that this problem is related to axios timeout configuration;
# gitmoji.js
.catch((error) =>
- this._errorMessage(`Network connection not found - ${error.code}`)
+ this._errorMessage(`Network connection not found - ${error.message}`)
)
With this change, the error was changed
# from this
ERROR: Network connection not found - ECONNABORTED
# to this
ERROR: Network connection not found - timeout of 5000ms exceeded
Increasing axios timeout in util.js file from 5000 to 30000 solves this problem.
Hello @carloscuesta!
After
gitmoji-cli
installation, when I run thegitmoji -l
command the following error is returned:I changed the
gitmoji.js
file at line 205 to view more details about the Network connection not found error, and I discovered that this problem is related to axios timeout configuration;With this change, the error was changed
Increasing
axios timeout
in util.js file from 5000 to 30000 solves this problem.Ps: A feedback message in
_fetchRemoteEmojis()
method should be placed, to avoid a unexpectedCTRL + C
during the fetch.Maybe this issue is related to #40 and #49.
Steps to reproduce:
npm i -g gitmoji-cli
gitmoji -l
OS: KDE neon 5.14 gitmoji -v: 1.9.2 Node version: 10.15.0
Error Message:
Proposed fetch feedback message: