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

impossible to inspect http requests #109

Open
lsimone opened this issue Dec 20, 2016 · 0 comments
Open

impossible to inspect http requests #109

lsimone opened this issue Dec 20, 2016 · 0 comments

Comments

@lsimone
Copy link

lsimone commented Dec 20, 2016

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?

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