You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code block below shows that showLog in client.js buffers the response received when we hit the log endpoint (from line 191 of client.js):
api.get(logUrl,function(err,req,res,result){if(err)returncallback(err);callback(null,res.body);// This is weird that result is empty and res.body isn't});
By comparison, a simple curl localhost:8888/log returns an immediate, streaming response. The showLog method should do the same.
This could be the beginning of a larger refactor away from restify, since we have to drop down to its ugly HttpClient, at which point I'd rather just use request or even http.request.
The text was updated successfully, but these errors were encountered:
The code block below shows that showLog in client.js buffers the response received when we hit the log endpoint (from line 191 of client.js):
By comparison, a simple
curl localhost:8888/log
returns an immediate, streaming response. The showLog method should do the same.This could be the beginning of a larger refactor away from restify, since we have to drop down to its ugly HttpClient, at which point I'd rather just use request or even http.request.
The text was updated successfully, but these errors were encountered: