microsoftarchive / wunderlist.js

Wunderlist Javascript SDK
https://developer.wunderlist.com/documentation/tools/wunderlist.js
120 stars 29 forks source link

WebSocket connection error #7

Open Jusuf opened 8 years ago

Jusuf commented 8 years ago

Hi!

Sry for my bad english. Im studying to be web developer. I got task to implement wunderlist api in some app. Im getting lists. Why do i gett this error message?

Ok (index):24 [Object] 2wunderlist.sdk.js:4286 WebSocket connection to 'wss://socket.wunderlist.com:8443/api/v1/sync?client_id=9bc9faf58bd6f059d8e6…3b93cd2a7bdb69bf68&client_device_id=undefined&client_instance_id=undefined' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

here is code

<script>
    var wunderlistSDK = window.wunderlist.sdk;
    var wunderlistAPI = new wunderlistSDK({
        'accessToken': '3bfeea608bc1fca2772a4130b2233cd32c9989ce643b93cd2a7bdb69bf68',
        'clientID': '9bc9faf58bd6f059d8e6'
    });

    wunderlistAPI.http.lists.all()
      .done(function (lists) {
          /* do stuff */
          console.log("Ok"); 
          WebSocket.CLOSED;
          console.log(lists);
      })
      .fail(function () {
          console.error('there was a problem');
      });
</script>
vpiskunov commented 7 years ago

Any update on this? Same issue here...

vpiskunov commented 7 years ago

Please see the referenced commit above - #16

Let me know if you have any comments, or otherwise merge the commit in, as it seems any updates on this have stalled.