Details:
A Spotfire dashboard's text area contains a button that, when clicked, uploads an external file into the dashboard. It is possible that this action will fail and the user will see the below content on-screen in the Analyst client which includes "The max size for WebSocket messages was exceeded":
Furthermore, the upload may succeed if the size of the external file is small (perhaps less than 250 KB), but fail for larger file sizes.
Solution:
Use the below commands to modify the default value of 32kb, referring to these KB Articles for further context:
How to export the Spotfire server configuration using the command line interface. (zendesk.com)
Importing the Spotfire server configuration using the command line interface. (zendesk.com)
config export-config
config set-config-prop --name=services.webplayer.websockets.max-client-message-size --value=32768
config import-config -c "Updated the websockets message size"
Note that value=32768 is the default value (32KB), so try modifying this value to 65536 (64KB) and continue increasing as necessary until the issue becomes resolved.
If you inspect the updated content of your configuration.xml file, you will notice the below block which may not exist by default:
<services>
<webplayer>
<websockets>
<max-client-message-size>65536</max-client-message-size>
</websockets>
</webplayer>
</services>
Then restart your Spotfire server per this article: Updating a server configuration on the command line (tibco.com)
This article provides guidance on restarting a Spotfire server, specific to your Operating System: Start or stop Spotfire Server (tibco.com)
As an alternate solution to the above, you may choose to disable WebSockets, if your Spotfire system does not involve Data Streaming. A segment of the following article describes disabling of WebSockets in a Spotfire environment:
Comments
0 comments
Article is closed for comments.