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

Request with id = X failed. unknown domain [Debugger, Profiler, Timeline, Page, Inspector ...] #128

Open
gfarrell opened this issue Sep 23, 2014 · 2 comments
Labels

Comments

@gfarrell
Copy link

PonyDebugger is connected in my app, and shows up on the list of devices (it's running in the simulator). When I click on it, the dev tools are completely blank (as in, the interface shows up, but no data at all, not even the attempts I made at logging).

If I open the web inspector, and have a look at the console, I see these errors.

Request with id = 1 failed. unknown domain Debugger

and so on, all referencing InspectorBackend.js:237, which is in the reportProtocolError() method.

I'm initialising the debugger as follows in my AppDelegate:

// Setup PonyDebugger
PDDebugger *myMagicPony = [PDDebugger defaultInstance];
// [myMagicPony autoConnect];
[myMagicPony connectToURL:[NSURL URLWithString:@"ws://localhost:9000/device"]];
[myMagicPony enableNetworkTrafficDebugging];
[myMagicPony forwardAllNetworkTraffic];
[myMagicPony enableRemoteLogging];

PDLog(@"Hello World");

As I said, in the XCode console I can see that it has connected, and in the pony gateway I can see the device listed, I just am not getting any data, and I have a feeling that the errors I posted a screenshot of above have something to do with it.

@bawn
Copy link

bawn commented Feb 3, 2015

same problem

@wlue wlue added the bug label Feb 3, 2015
@Joachricar
Copy link

I am getting these errors as well.

Update:
I finally got some data from the PonyDebugger. The "unknown domain XXX" errors are responses from the iOS app and lists requestes Domains which are not activated on the app yet(or so it seems). When disabling and enabling networkDebugging, CoreDataDebugging, remoteLogging etc. the list of errors expands/shrinks.

        let debugger = PDDebugger.defaultInstance()
        debugger.enableCoreDataDebugging()
        debugger.addManagedObjectContext(RKObjectManager.sharedManager().managedObjectStore.mainQueueManagedObjectContext)
        debugger.enableNetworkTrafficDebugging()
        debugger.forwardAllNetworkTraffic()
        debugger.enableViewHierarchyDebugging()
        debugger.enableRemoteLogging()
        debugger.connectToURL(NSURL(string: "ws://myLAN-IP:9000/device"))

By using the above code i can now browse CoreData, but i still get no data on the networkDebugger and the viewHierarchyDebugger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants