Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Atlassian Companion App does not open files

Deleted user July 31, 2023

When I try to edit an excel file (xlsx) I get an error as presented below (though a bit altered to remove user information).

info: adc:ServerFacade 2023-07-31T13:01:37.905Z {"birdy":{"method":"GET","hostname":"CONFLUENCESERVER","path":"/rest/token-auth/api/previews/templinksresource/companion/attachment?attachmentId=ATTACHMENTID&jwt=JWT","statusCode":200,"duration":497}}
error: adc:ServerFacade 2023-07-31T13:01:37.907Z Could not get temp link information:
error: adc:ServerFacade 2023-07-31T13:01:37.907Z SyntaxError: Unexpected token < in JSON at position 4
at JSON.parse (<anonymous>)
at Function.json (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:2:26803)
at x.awaitJson (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:2:23677)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async t.default.getTempLinkMetadata (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1776186)
at async g.retrieveTempLinkData (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1775111)
at async g.handleProtocol (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1772329)
error: adc:ServerFacade 2023-07-31T13:01:37.908Z SyntaxError: Unexpected token < in JSON at position 4
at JSON.parse (<anonymous>)
at Function.json (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:2:26803)
at x.awaitJson (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:2:23677)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async t.default.getTempLinkMetadata (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1776186)
at async g.retrieveTempLinkData (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1775111)
at async g.handleProtocol (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1772329)
info: adc:ErrorHandler - 2023-07-31T13:01:37.908Z Unable to JSON parse and extract response error responseText: undefined
error: adc:ProtocolHandler 2023-07-31T13:01:37.909Z Error parsing protocol link
error: adc:ProtocolHandler 2023-07-31T13:01:37.909Z SyntaxError: Unexpected token < in JSON at position 4
at JSON.parse (<anonymous>)
at Function.json (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:2:26803)
at x.awaitJson (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:2:23677)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async t.default.getTempLinkMetadata (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1776186)
at async g.retrieveTempLinkData (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1775111)
at async g.handleProtocol (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1772329)
error: adc:ProtocolHandler 2023-07-31T13:01:37.910Z SyntaxError: Unexpected token < in JSON at position 4
at JSON.parse (<anonymous>)
at Function.json (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:2:26803)
at x.awaitJson (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:2:23677)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async t.default.getTempLinkMetadata (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1776186)
at async g.retrieveTempLinkData (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1775111)
at async g.handleProtocol (C:\Users\USERNAME\AppData\Local\atlassian-desktop-companion\app-1.4.5\resources\app.asar\.webpack\main\index.js:8:1772329)

How can I debug this further? I have set the logging level to DEBUG in companionConfig.json


The Confluence server is Confluence 7.19.5

1 answer

1 accepted

0 votes
Answer accepted
Deleted user August 3, 2023

The issue was related to the nginx requesting SSO login on every access to confluence.
This fix was to skip SSO for /rest/token-auth/api/ and /download/token-auth/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events