12-02-2018 02:19 - edited 12-02-2018 02:20
12-02-2018 02:19 - edited 12-02-2018 02:20
while i'm trying to use the module xmlhttprequest i recive the following error : "Unhandled Error: Cannot find module 'xmlhttprequest'".
i'm using this module to recive information based on your actual position from a remote server throught get/post request.
how can i solve this error ?
Answered! Go to the Best Answer.
12-02-2018 11:36
12-02-2018 11:36
Yes, assuming you're trying to get an AJAX-like response from a server.
12-02-2018 11:24
12-02-2018 11:24
It sounds like you're developing for a web site. Fitbits don't have HTML. Try using fetch().
12-02-2018 11:31
12-02-2018 11:31
You suggest to use fetch() instead of xmlhttprequest ?
12-02-2018 11:36
12-02-2018 11:36
Yes, assuming you're trying to get an AJAX-like response from a server.
12-02-2018 11:52
12-02-2018 11:52
Yes, the response will be json file