Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug a '4005 Path Not Found' error?

Tags:

pusher

I am trying to integrate Pusher with my web application that uses backbone.js. I'm following the Pusher with Backbone guide in the Pusher docs.

So I'm seeing this error pop up in the web console on application start up

Pusher : Error : {"type":"PusherError","data":{"code":4005,"message":"Path not found"}}

What is this 'path' that cannot be found? I found nothing in the Pusher docs.

like image 201
Robin Rosicky Avatar asked Dec 07 '12 05:12

Robin Rosicky


1 Answers

A 4005 error generally means that the WebSocket URL you are using doesn't identify an application to connect to.

In terms of usage of the Pusher JavaScript library this means you've likely supplied an empty string as the app_key to the Pusher constructor.

var pusher = new Pusher('');

You can see this in action here: http://jsbin.com/evulaj/1/edit

Open the JavaScript console to see the error. You can also check the app_key value set by checking pusher.key.

Note: I appreciate this error is a bit cryptic. I'll see if we can remedy this

like image 98
leggetter Avatar answered Jan 18 '23 22:01

leggetter