devtool icon indicating copy to clipboard operation
devtool copied to clipboard

impossible to inspect http requests

Open lsimone opened this issue 8 years ago • 0 comments

I cannot log and inspect the HTTP requests executed by nodejs towards an external API.

I read your guide and the paragraph about --browser-field and xhr-request, but I need to use another HTTP client because it is a restful.js dependency, and all the requests it executes are not logged in console and in the network devtool panel.

I tried the most simplified scenario that is the following:

require('request')('https://api.github.com/users/mattdesl/repos', function (error, response, body) {
    console.log('request done', error, response, body)
});

require('xhr-request')('https://api.github.com/users/mattdesl/repos');


Just the second request is reported in devtool network panel and in console. The first one is executed but I cannot trace it in devtool. Is there is a solution?

lsimone avatar Dec 20 '16 17:12 lsimone