Companion App upload issue ETIMEDOUT
Asked by KarstenK:

Hi There.

I am testing the companion app for our users who ask for easy in-place editing of files. Opening the files works fine but uploading changes doesn't work as the app does not seem to be able to upload to the Atlassian servers. Is this a common issue?

v1.0.0

Error Message:

```
{"unhandledPromiseRejection":true,"Error":{"errno":"ETIMEDOUT","code":"ETIMEDOUT","syscall":"connect","address":"18.184.99.154","port":443},"node":"v12.0.0"},"message":"Error: connect ETIMEDOUT 18.184.99.154:443","exception":[{"type":"Error","value":"connect ETIMEDOUT 18.184.99.154:443","stacktrace":{"frames": ...
```

this is the complete log entry:

```
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:20.347Z","message":["Launching file on desktop:","C:\\Users\\DEWE0815\\.atlassian-companion\\5dbd9657-94a7-46c2-a43e-9cb0cfd1b352\\Mappe1.xlsx"]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:20.355Z","message":["Trying to get file type using magic bytes:"]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:20.377Z","message":["Trying to get file type using magic bytes:"]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:20.401Z","message":["PATHEXT : .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc;.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc;COMPANION_BLOCK_LIST : undefined;.com;.exe;.bat;.cmd:Application Name: undefined"]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:20.411Z","message":["Mappe1.xlsx has an extension [xlsx]"]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:23.973Z","message":["Change reported, checking murmur for file:","5dbd9657-94a7-46c2-a43e-9cb0cfd1b352","Testing:","c6ac0bc4cdc4c21f7135b516a8ae8165"," vs ","c6ac0bc4cdc4c21f7135b516a8ae8165"]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:23.986Z","message":["Murmur resulted in no-change, checking SHA fallback, Testing:","fxJDA8hBNHSavExEJz8KLUFev8I=","vs ","fxJDA8hBNHSavExEJz8KLUFev8I="]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:23.998Z","message":["ignoring change"]},
{"namespace":"adc:auto-updater","date":"2020-02-07T11:32:38.822Z","message":["checking for update"]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:42.711Z","message":["Change reported, checking murmur for file:","5dbd9657-94a7-46c2-a43e-9cb0cfd1b352","Testing:","c6ac0bc4cdc4c21f7135b516a8ae8165"," vs ","4be35c2a4dcafaa3158ec604ff8f6f03"]},
{"namespace":"adc:file-manager","date":"2020-02-07T11:32:42.717Z","message":["accepting change"]},
{"namespace":"adc:file-watcher","date":"2020-02-07T11:32:42.731Z","message":["File Changed:","5dbd9657-94a7-46c2-a43e-9cb0cfd1b352"]},
{"namespace":"adc:file-watcher","date":"2020-02-07T11:32:42.744Z","message":["File stream:","C:\\Users\\DEWE0815\\.atlassian-companion\\5dbd9657-94a7-46c2-a43e-9cb0cfd1b352\\Mappe1.xlsx"]},
{"namespace":"adc:file-uploader","date":"2020-02-07T11:32:42.751Z","message":["uploading new chunked file with fileName:","Mappe1.xlsx","from path:","C:\\Users\\DEWE0815\\.atlassian-companion\\5dbd9657-94a7-46c2-a43e-9cb0cfd1b352\\Mappe1.xlsx"]},
{"namespace":"adc:transaction:651323cf-3a3f-4fff-9ef5-4eaf859dde8f","date":"2020-02-07T11:32:42.759Z","message":["requesting information. type:","request-upload-token","n:",1]},
{"namespace":"adc:websocket","date":"2020-02-07T11:32:42.920Z","message":["received message:","{\"transactionID\":\"651323cf-3a3f-4fff-9ef5-4eaf859dde8f\",\"responseID\":1,\"type\":\"request-upload-token\",\"payload\":\"eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJlYTU5NDA1ZC1jMjJkLTQxYzktOWIyZS1kMzk1YjM3MDhjZDkiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTp1cGxvYWQ6KiI6WyJyZWFkIiwidXBkYXRlIl0sInVybjpmaWxlc3RvcmU6dXBsb2FkIjpbImNyZWF0ZSJdLCJ1cm46ZmlsZXN0b3JlOmZpbGUiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6Y2h1bms6KiI6WyJyZWFkIiwiY3JlYXRlIl19LCJleHAiOjE1ODEwNzU3NjIsIm5iZiI6MTU4MTA3NTEwMn0.3UFqtc9ppmlqULvS6rJqNlAxI_ofTa3MPQ7KAjZSWVE\",\"requestID\":5}"]},
{"namespace":"adc:websocket","date":"2020-02-07T11:32:42.926Z","message":["received transaction message for:","651323cf-3a3f-4fff-9ef5-4eaf859dde8f"]},
{"namespace":"adc:transaction:651323cf-3a3f-4fff-9ef5-4eaf859dde8f","date":"2020-02-07T11:32:42.931Z","message":["received information response",1," - ","eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJlYTU5NDA1ZC1jMjJkLTQxYzktOWIyZS1kMzk1YjM3MDhjZDkiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTp1cGxvYWQ6KiI6WyJyZWFkIiwidXBkYXRlIl0sInVybjpmaWxlc3RvcmU6dXBsb2FkIjpbImNyZWF0ZSJdLCJ1cm46ZmlsZXN0b3JlOmZpbGUiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6Y2h1bms6KiI6WyJyZWFkIiwiY3JlYXRlIl19LCJleHAiOjE1ODEwNzU3NjIsIm5iZiI6MTU4MTA3NTEwMn0.3UFqtc9ppmlqULvS6rJqNlAxI_ofTa3MPQ7KAjZSWVE"]},
{"namespace":"adc:file-watcher","date":"2020-02-07T11:32:42.937Z","message":["Client discovered. clientID:","ea59405d-c22d-41c9-9b2e-d395b3708cd9"," token:","eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJlYTU5NDA1ZC1jMjJkLTQxYzktOWIyZS1kMzk1YjM3MDhjZDkiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTp1cGxvYWQ6KiI6WyJyZWFkIiwidXBkYXRlIl0sInVybjpmaWxlc3RvcmU6dXBsb2FkIjpbImNyZWF0ZSJdLCJ1cm46ZmlsZXN0b3JlOmZpbGUiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6Y2h1bms6KiI6WyJyZWFkIiwiY3JlYXRlIl19LCJleHAiOjE1ODEwNzU3NjIsIm5iZiI6MTU4MTA3NTEwMn0.3UFqtc9ppmlqULvS6rJqNlAxI_ofTa3MPQ7KAjZSWVE"]},
{"namespace":"adc:browser","date":"2020-02-07T11:33:03.980Z","message":["logged raw sentry error:",{"extra":{"unhandledPromiseRejection":true,"Error":{"errno":"ETIMEDOUT","code":"ETIMEDOUT","syscall":"connect","address":"18.184.99.154","port":443},"node":"v12.0.0"},"message":"Error: connect ETIMEDOUT 18.184.99.154:443","exception":[{"type":"Error","value":"connect ETIMEDOUT 18.184.99.154:443","stacktrace":{"frames":[{"filename":"net.js","lineno":1061,"colno":14,"function":"TCPConnectWrap.afterConnect [as oncomplete]","in_app":false,"module":"net"}]}}],"user":{},"tags":{},"breadcrumbs":{"values":[{"timestamp":1580996657.966,"category":"sentry","message":"Error: connect ETIMEDOUT 18.184.99.153:443","event_id":"07bbef474842436885bfc6be0588edde","level":"error"},{"timestamp":1581074647.073,"category":"sentry","message":"Error: connect ETIMEDOUT 18.184.99.153:443","event_id":"a2b03b33e96d416c89c17b0ec28ca5b8","level":"error"}]},"request":{},"modules":{"electron-compile":"6.4.4","pify":"2.3.0","mkdirp":"0.5.1","lru-cache":"4.1.5","pseudomap":"1.0.2","rxjs":"5.5.12","tslib":"1.10.0","debug":"4.1.1","supports-color":"3.2.3","ms":"2.1.2","fs-extra":"8.1.0","universalify":"0.1.2","graceful-fs":"4.2.3","jsonfile":"4.0.0","@atlassian/birdy":"3.10.1","proxy-agent":"3.1.1","yallist":"3.1.1","agent-base":"4.3.0","es6-promisify":"5.0.0","proxy-from-env":"1.0.0","pac-proxy-agent":"3.0.1","get-uri":"2.0.4","readable-stream":"2.3.6","process-nextick-args":"2.0.1","core-util-is":"1.0.2","inherits":"2.0.4","util-deprecate":"1.0.2","data-uri-to-buffer":"1.2.0","file-uri-to-path":"1.0.0","ftp":"0.3.10","xregexp":"2.0.0","extend":"3.0.2","http-proxy-agent":"2.1.0","https-proxy-agent":"3.0.1","socks-proxy-agent":"4.0.2","socks":"2.3.2","ip":"1.1.5","smart-buffer":"4.0.2","pac-resolver":"3.0.0","co":"4.6.0","thunkify":"2.1.2","degenerator":"1.0.4","ast-types":"0.13.2","escodegen":"1.12.0","estraverse":"4.3.0","esutils":"2.0.3","netmask":"1.0.6","raw-body":"2.4.1","bytes":"3.1.0","http-errors":"1.7.3","depd":"1.1.2","setprototypeof":"1.1.1","statuses":"1.5.0","toidentifier":"1.0.0","iconv-lite":"0.4.24","safer-buffer":"2.1.2","unpipe":"1.0.0","form-data":"2.5.1","combined-stream":"1.0.8","delayed-stream":"1.0.0","mime-types":"2.1.24","mime-db":"1.40.0","asynckit":"0.4.0","retry":"0.9.0","@atlassian/logger-interface":"1.3.9","query-string":"6.8.3","strict-uri-encode":"2.0.0","decode-uri-component":"0.2.0","split-on-first":"1.1.0","uuid":"3.3.3","raven":"2.6.4","cookie":"0.3.1","timed-out":"4.0.1","stack-trace":"0.0.10","md5":"2.2.1","crypt":"0.0.2","charenc":"0.0.2","is-buffer":"1.1.6","ws":"7.1.2","async-limiter":"1.0.1","@atlassian/file-associations":"1.5.0","bindings":"1.5.0","xml2js":"0.4.22","sax":"1.2.4","util.promisify":"1.0.0","define-properties":"1.1.3","object-keys":"1.1.1","object.getownpropertydescriptors":"2.0.3","es-abstract":"1.16.0","has":"1.0.3","function-bind":"1.1.1","es-to-primitive":"1.2.0","is-callable":"1.1.4","is-date-object":"1.0.1","is-symbol":"1.0.2","has-symbols":"1.0.0","object-inspect":"1.6.0","is-regex":"1.0.4","gaze":"1.1.3","globule":"1.2.1","lodash":"4.17.15","glob":"7.1.5","fs.realpath":"1.0.0","minimatch":"3.0.4","brace-expansion":"1.1.11","concat-map":"0.0.1","balanced-match":"1.0.0","path-is-absolute":"1.0.1","inflight":"1.0.6","wrappy":"1.0.2","once":"1.4.0","open":"7.0.0","is-wsl":"2.1.1","progress-stream":"2.0.0","xtend":"4.0.2","speedometer":"1.0.0","file-type":"13.0.3","strtok3":"5.0.1","peek-readable":"3.1.0","token-types":"2.0.0","ieee754":"1.1.13","murmurhash-native":"3.4.1","node-pre-gyp":"0.13.0","abbrev":"1.1.1","osenv":"0.1.5","os-tmpdir":"1.0.2","os-homedir":"1.0.2","npmlog":"4.1.2","are-we-there-yet":"1.1.5","delegates":"1.0.0","gauge":"2.7.4","console-control-strings":"1.1.0","wide-align":"1.1.3","is-fullwidth-code-point":"2.0.0","aproba":"1.2.0","object-assign":"4.1.1","string-width":"1.0.2","strip-ansi":"3.0.1","ansi-regex":"2.1.1","code-point-at":"1.1.0","number-is-nan":"1.0.1","has-unicode":"2.0.1","signal-exit":"3.0.2","set-blocking":"2.0.0","detect-libc":"1.0.3","@atlassian/filestore":"6.10.1","@atlassian/mediatoken":"0.13.0","ajv":"5.5.2","fast-deep-equal":"1.1.0","json-schema-traverse":"0.3.1","fast-json-stable-stringify":"2.0.0","jsonwebtoken":"8.5.1","jws":"3.2.2","safe-buffer":"5.2.0","jwa":"1.4.1","buffer-equal-constant-time":"1.0.1","ecdsa-sig-formatter":"1.0.11","lodash.includes":"4.3.0","lodash.isboolean":"3.0.3","lodash.isinteger":"4.0.4","lodash.isnumber":"3.0.3","lodash.isplainobject":"4.0.6","lodash.isstring":"4.0.1","lodash.once":"4.1.1","q":"1.5.1","node-forge":"0.7.6","axios":"0.15.3","node-cache":"3.2.1","clone":"1.0.4","leveldown":"5.4.0","abstract-leveldown":"6.2.2","level-supports":"1.0.1","node-gyp-build":"4.1.1","keytar":"4.13.0","he":"1.2.0","jwt-authentication":"0.4.0","ntp-time-sync":"0.1.0","ntp-packet-parser":"0.1.0","lodash.debounce":"4.0.8"},"server_name":"DEWE1986","environment":"production","event_id":"4e4e983fc0e34b86a09dade3263e6597","timestamp":"2020-02-07T11:33:03","project":"169407","platform":"node","release":"1.0.0"}]}
]
```


Answers:
author: Alex van Vucht (GLiNTECH)
body: This has been confirmed as a defect by Atlassian. See <https://jira.atlassian.com/browse/CONFCLOUD-69550>


author: Alex van Vucht (GLiNTECH)
body: Hi KarstenK, I have a client experiencing this issue too.

Can you confirm that you use a proxy on your network? Can you confirm that you can edit files when you use it outside your network?

It used to work fine. It appears that a regression error was introduced in 0.7.6, released on 19 December, that disables using a proxy when uploading files. I hope Atlassian fixes it soon.


Tags: cloud

companion-app

confluence-cloud