question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while parsing debug 'response' object

See original GitHub issue

Hello, debugger.js is failing as below when running on Windows 10, nativescript 3.1.2, tns-core-modules 3.1.0, tns-android 3.1.1. I can’t seem to pinpoint the exact location where the crash happens, unfortunately. Here’s the fragment of error-display I could get from my emulator:

An uncaught Exception occurred on “main” thread. com.tns.NativeScriptException: Calling js method onComplete failed

Error: Error while parsing debug response object. mimeType: string value expected File: "file:///data/data/com.dftly.v4skiosk/files/app/tns_modules/tns-core-modules/debugger/debugger.js, line: 30, column: 27

StackTrace: Frame: function:‘responseReceived’, file:‘’, line: 30, column: 28 Frame: function:‘onRequestComplete’, file:‘’, line: 60, column: 33 Frame: function:‘onComplete’, file:‘’, line: 37, column: 13

at com.tns.Runtime.callJSMethodNative(Native Method)
at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1043)
at com.tns.Runtime.callJSMethodImpl(Runtime.java:925)
at com.tns.Runtime.callJSMethod(Runtime.java:912)
at com.tns.Runtime.callJSMethod(Runtime.java:896)
at com.tns.Runtime.callJSMethod(Runtime.java:888)
at com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12)
at org.nativescript.widgets.Async$Http$HttpRequ

I am running a local node server, so I tried Josh Comley’s suggestion here to no avail - still crashes in the same manner. Of course, app works OK if I’m not connected to the debugger.

Which platform(s) does your issue occur on?

Windows running a Genymotion Android emulator

Please provide the following version numbers that your issue occurs with:

Windows 10, nativescript 3.1.2, tns-core-modules 3.1.0, tns-android 3.1.1

I could provide a code-extract, if that’s needed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nmandyamcommented, Jul 25, 2017

Sorry, I should have responded: Josh Comley’s suggestion DID work. Thanks!

0reactions
lock[bot]commented, Aug 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while parsing JSON Response in REST API Post call
I have copied and pasted the REST Request and Response JSON definitions into the Request and Response text boxes provided by OS REST...
Read more >
Wicket.Ajax.Call.failure: Error while parsing response
The reason was an incorrect Content-Type of AJAX response. I used AbstractTransformerBehavior and there was a bug in Wicket 1.4.x so this ...
Read more >
Troubleshooting AWS CLI errors - AWS Command Line Interface
When you include the --debug option, some of the details include: Looking for credentials. Parsing the provided parameters. Constructing the request sent to...
Read more >
How to troubleshoot the error "Failed to process response ...
This error almost always means that the policy did not receive any data. If you increase the logging from error to debug, you...
Read more >
Debugging best practices for REST API consumers
Malformed JSON: Newcomers make some common mistakes when sending JSON bodies. · Serializing data: REST APIs frequently store and send data as ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found