Text

Answered

myscript websocket "setTheme" type message returns error

I am trying to configure websocket connection to myscript server but when i send "setTheme" type message it returns an error with error code "session.no.content.part" and message "No content part current found".i searched but couldn't find what this error means. could someone help me with what it means and how to fix it?


Best Answer

Hi Faisal,


Thank you for your question.


This error means that you have not sent a content Part to your package.


So, you should create a part, before setting a theme.
The part type can be MATh or TEXT.

For further details please refer to:


https://developer.myscript.com/docs/interactive-ink/1.4/web/websockets/messages/#creating-a-new-part


Best regards,


Gwenaëlle

1 Comment

Answer

Hi Faisal,


Thank you for your question.


This error means that you have not sent a content Part to your package.


So, you should create a part, before setting a theme.
The part type can be MATh or TEXT.

For further details please refer to:


https://developer.myscript.com/docs/interactive-ink/1.4/web/websockets/messages/#creating-a-new-part


Best regards,


Gwenaëlle