Unirest is running asynchronously
- Dominant language
- JavaScript
- Stars
- 953
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have noticed that unirest 0.6.0 is running asynchronously.
The code reproducing is
```
unirest
.post ("http://localhost/serverurl")
.headers ({ 'Content-Type': 'application/x-www-form-urlencoded;' })
.end ((x) => console.log("OK " + JSON.stringify(x)));
console.log("End");
```
The excepted output is
````
OK { json data }
End
````
But got
````
End
OK { json data }
````
Thanks.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no source file or test. Start with the posted unirest.post(...).end(...) reproducer and verify the callback ordering; resolution would need to define whether .end should remain asynchronous or produce the requested ordering, then add regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100