-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Executing HTTP request followed by another HTTP request #1258
Comments
I never tried myself but why not, have you tried? This all being asynchronous and event-driven I'd expect that to work just fine. |
There is output of the script I attached, so don't you think it's very likely that I tried? 😉 |
Grrr... mea culpa, sorry about that. I didn't study your example carefully enough and particularly had missed the last line (at that time I didn't think it was a complete example). Pity this seems to fall under #719 and should be discussed elsewhere.
Replace |
Hi @marcelstoer, Thanks for your hint, it works! |
I wanted to execute a HTTP request (using http module) and when a response comes, immediately execute another request. The code is more or less is like this:
Unfortunately the second request is never executed, in the output I always get:
The response from the second request never comes back. What am I doing wrong?
I suspect that when the callback function of the first request is being executed it is not possible to "initiate" another HTTP request. If it is the cause, what is the proper way of achieveing such simple sequence of requests?
The text was updated successfully, but these errors were encountered: