Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unirest is running asynchronously #139

Open
grizzlyfute opened this issue Aug 31, 2021 · 0 comments
Open

Unirest is running asynchronously #139

grizzlyfute opened this issue Aug 31, 2021 · 0 comments

Comments

@grizzlyfute
Copy link

grizzlyfute commented Aug 31, 2021

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.

@grizzlyfute grizzlyfute changed the title Unirest is running asynchronous in case of error Unirest is running asynchronously Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant