myscript websocket "setTheme" type message returns error
F
Faisal
started a topic
almost 2 years ago
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
G
Gwenaelle @MyScript
said
almost 2 years ago
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.
Faisal
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?
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
Gwenaelle @MyScript
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