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
I hope this isn't a dumb question, but I'm trying to use the 'request' npm module with browserify to convert and I'm having trouble and my plea for help on stackoverflow has gone unanswered. :(
The code I have is pretty standard, I'm posting a request to the server from the browserified version with something like:
The POST is made and I see in the Chrome network tab that the request is successful -- but I'm not getting called back from request.
Do I need to substitute a client version of 'request' for the node.js one (ala https://github.com/iriscouch/browser-request)? If so, how do I do that - the sample code in fake.js seems to only work for project code and not modules?
Thanks for your work on this project - its a great tool.
The text was updated successfully, but these errors were encountered:
Previous versions of request worked with previous versions of browserify but the latest version of each do not work well with each other. Other folks have already noticed this issue and have posted it to request's issues page. In the meantime you can use tools like browser-request like you mention or if you want .pipe()hyperquest works in browsers.
I hope this isn't a dumb question, but I'm trying to use the 'request' npm module with browserify to convert and I'm having trouble and my plea for help on stackoverflow has gone unanswered. :(
The code I have is pretty standard, I'm posting a request to the server from the browserified version with something like:
The POST is made and I see in the Chrome network tab that the request is successful -- but I'm not getting called back from request.
Do I need to substitute a client version of 'request' for the node.js one (ala https://github.com/iriscouch/browser-request)? If so, how do I do that - the sample code in fake.js seems to only work for project code and not modules?
Thanks for your work on this project - its a great tool.
The text was updated successfully, but these errors were encountered: