lukeed / lukeed/httpie

next "timeout" doesn't work as expected (i guess)

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
581
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Hi,

Recently in one of my project [Node-secure](https://github.com/ES-Community/nsecure) i spotted that the part of the code that was responsible to fetch data on the npm registry was not able to properly terminate (some asynchronous function never end).

This code use one of my package that is: https://github.com/SlimIO/Npm-registry. I recently updated this package with the next version of httpie in hope to fix the problem with the new **timeout** option.

But the problem is still there :\

I made a repository to reproduce the problem without all the noise: https://github.com/fraxken/httpie_timeout_bug

Sometimes it work (i guess it work when npm return 200 for every packages of the list). But sometimes it seem to never end (even with the timeout).

Best Regards,
Thomas

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproduction repository at https://github.com/fraxken/httpie_timeout_bug and inspect how the httpie timeout option behaves when npm requests do not all return 200. Trace the asynchronous request path in the httpie package and establish why the operation can remain pending; done means the reproduction terminates consistently when the timeout is reached.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.