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

大兔子大兔子 提交于 2019-12-01 02:54:20

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/13757303/how-to-debug-a-4005-path-not-found-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!