Connecting/Sync issues

Good morning!

I’m having problems with the new desktop app (v 5.3.2 on Windows 7) connecting and syncing. It consistently flickers between connecting and syncing. Eventually, the connection will go to the delayed attempt to connect.

Is there any way to debug this from within Postman?

Normally, I’d not worry, but Postman was in the middle of a sync, and deleted all my requests.

Thanks!

Patrick

Figured out how to debug it (Postman Dev Tools).

It looks like the problem is on the server side?

Here are the logs:

xml.js:22 NOTE: Adding request 016f2c4b-5e46-1403-1598-647cb0409e28 to force fetch
xml.js:22 Error sanitizing order for collection:  TypeError: Cannot read property 'push' of undefined
    at child.addRemoteRequestsToFetch (xml.js:22)
    at child.sanitizeOrder (xml.js:22)
    at onGetAllRequestsInCollection (xml.js:22)
    at IDBRequest.cursorRequest.onsuccess (xml.js:22)
sanitizeOrder @ xml.js:22
sails.io.js:142 🌏 sync service connectivity initiated
sails.io.js:759 socket replaying queued commands
sails.io.js:759 socket replaying queued commands
sails.io.js:142 🌏 connected to sync service.
xml.js:22 Error fetching team notifications
(anonymous) @ xml.js:22
sails.io.js:142 🌏 force disconnecting from sync service.
sails.io.js:142 🌏 disconnected from sync service. possibly a network outage.
sails.io.js:142 🌏 connected to sync service.
sails.io.js:759 socket replaying queued commands
xml.js:22 Error fetching team notifications
(anonymous) @ xml.js:22
sails.io.js:142 🌏 force disconnecting from sync service.
sails.io.js:142 🌏 disconnected from sync service. possibly a network outage.
sails.io.js:142 🌏 connected to sync service.
sails.io.js:759 socket replaying queued commands
xml.js:22 Error fetching team notifications
(anonymous) @ xml.js:22
sails.io.js:142 🌏 force disconnecting from sync service.
sails.io.js:142 🌏 disconnected from sync service. possibly a network outage.
sails.io.js:142 🌏 connected to sync service.
sails.io.js:759 socket replaying queued commands
xml.js:22 Error fetching team notifications
(anonymous) @ xml.js:22
sails.io.js:142 🌏 force disconnecting from sync service.
sails.io.js:142 🌏 disconnected from sync service. possibly a network outage.
sails.io.js:142 🌏 connected to sync service.
sails.io.js:759 socket replaying queued commands
xml.js:22 Error fetching team notifications
(anonymous) @ xml.js:22
xml.js:22 Error fetching team notifications
(anonymous) @ xml.js:22
sails.io.js:142 🌏 force disconnecting from sync service.
sails.io.js:142 🌏 disconnected from sync service. possibly a network outage.
sails.io.js:142 🌏 force disconnecting from sync service.
requester.html:1 WebSocket connection to 'wss://sync-xi.getpostman.com/socket.io/?__sails_io_sdk_version=0.11.0&__sai…tform=browser&__sails_io_sdk_language=javascript&EIO=3&transport=websocket' failed: WebSocket is closed before the connection is established.
sails.io.js:142 🌏 error establishing connection with sync service.
 Error: websocket error
    at WS.Transport.onError (sails.io.js:3)
    at WebSocket.ws.onerror (sails.io.js:4)
    at WS.doClose (sails.io.js:4)
    at WS.Transport.close (sails.io.js:3)
    at Socket.onClose (sails.io.js:3)
    at close (sails.io.js:3)
    at Socket.close (sails.io.js:3)
    at Manager.close.Manager.disconnect (sails.io.js:3)
    at Manager.destroy (sails.io.js:3)
    at Socket.destroy (sails.io.js:3)
    at Socket.close.Socket.disconnect (sails.io.js:3)
    at SailsSocket.SailsIOClient.SailsSocket._reconnect (sails.io.js:670)
    at SailsSocket.SailsIOClient.SailsSocket.reconnect (sails.io.js:442)
    at child.createSocket (xml.js:22)
    at child.signIn (xml.js:22)
    at child.setSync (xml.js:22)
    at triggerEvents (xml.js:22)
    at triggerApi (xml.js:22)
    at eventsApi (xml.js:22)
    at Object.Events.trigger (xml.js:22)
    at child.setupSync (xml.js:22)
    at child.getUserDataForSyncHandler (xml.js:22)
    at xml.js:22
    at xml.js:22
sails.io.js:142 🌏 connected to sync service.

@pgardella Looks like the app had some trouble establishing a connection with our sync service. Are you still facing this issue?

I am; at least most of the time. About once a day, the sync will complete. The rest of the time, I get this error, which was in the logs above:

Error fetching team notifications
(anonymous) @ xml.js:22
sails.io.js:142 :earth_asia: force disconnecting from sync service.
sails.io.js:142 :earth_asia: disconnected from sync service. possibly a network outage.
sails.io.js:142 :earth_asia: connected to sync service.
sails.io.js:759 socket replaying queued commands

Here is a GIST with the two calls in question. It looks like I get a 101 response code to the sails.io call with a “You are not authenticated by the server.” message, and then a 307 redirect when trying to get the cookie. I’m signed in just fine, since it works occasionally.

What can I do to help you debug this?

Patrick

Thanks for the GIST @pgardella. Seems like you are behind a firewall/proxy that is interfering with the connection. We have known issues with zscaler proxy and sync and we are looking into it - https://github.com/postmanlabs/postman-app-support/issues/3450

That is good to know. I wonder why it works occasionally. Oh well. I’ll track that issue. Thanks for the help!