Hello,
I am getting an error in debugger.js when debugging my app. The app sends HTTP requests some of which happen to have no "Content-Type". This seems to be causing the error.
Error: Error while parsing debug 'response' object. mimeType: string value expected.
Debugger.ts contains the following code:
let mimeType: string = <string>headers["Content-Type"] || <string>headers["content-type"];
So there will be no mimeType for requests with no "Content-Type". Locally I have temporarily fixed the problem by providing an empty string if no "Content-Type" is specified.
let mimeType: string = <string>headers["Content-Type"] || <string>headers["content-type"] || '';
Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
- Unzip the sample
- Run the http server - node .\server\index.js
- Add Android platform to the app - HelloWorld
- Update main-page.js to hit the correct URL
- Run the app in debug mode using VS Code
- Click the button
bug-http.zip
Hello,
I am getting an error in debugger.js when debugging my app. The app sends HTTP requests some of which happen to have no "Content-Type". This seems to be causing the error.
Error: Error while parsing debug 'response' object. mimeType: string value expected.
Debugger.ts contains the following code:
let mimeType: string = <string>headers["Content-Type"] || <string>headers["content-type"];So there will be no mimeType for requests with no "Content-Type". Locally I have temporarily fixed the problem by providing an empty string if no "Content-Type" is specified.
let mimeType: string = <string>headers["Content-Type"] || <string>headers["content-type"] || '';Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
CLI: 3.0.3
Cross-platform modules: 3.1.0-2017-06-16-6999 or 3.0.1
Runtime(s): 3.0.1
Please tell us how to recreate the issue in as much detail as possible.
bug-http.zip