EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB441070: “Unexpected token a in JSON at position” error when trying to connect to the Collaboration Server from the Library Administrator page


Vincent Auyeung

Principal Support Engineer • MicroStrategy


After making manual manipulation to these configuration files, a variety of errors may be yielded. In these situations, it is useful to review the Collaboration server logs, Library logs, Tomcat logs, and/or DSSErrors.log. The error “Unexpected token a in JSON at position” may be found in the Collaboration server logs.

Description

When configuring connectivity between the Collaboration Server and the Library Server, manipulation of several configuration files may be required. For example, when attempting to configure HTTPS/TLS, the config.json needs to be modified (Documentation). After manual modifying these configuration files, it's possible that you may encounter some errors when trying to connect Collaboration Server to the Library Server.
In these situations, it is useful to review the Collaboration server logs, Library logs, Tomcat logs, and/or DSSErrors.log. One such error you may find in the Collaboration Server logs is “Unexpected token a in JSON at position.”
 

Why is this happening?

This error indicates a syntax error within the config.json file that exists in the CollaborationServer file directory. One possible source of a syntax error in the config.json file is improperly defined file paths. In order to properly define the path of a file in the config.json file, you must utilize two slashes rather than a single slash. This is because strings surrounded by double quotes allow many escape sequences that begin with backslashes.
Below is an example of a valid file path for on a server running on a Windows operating system:
"keystoreFile": "C:\\Program Files\\certs\\Example.p12"
 

Solution

Validate that the file paths specified within your config.json file are using the correct syntax. If that is not the source of the problem, check to make sure your config.json file has been saved in a valid format. This can be reviewed through the use of a third party json validator.
Available json validator:
https://jsonformatter.curiousconcept.com/


Comment

0 comments

Details

Knowledge Article

Published:

June 20, 2018

Last Updated:

December 28, 2018