No SessionID in the request when calling variable1.
The request doesn't contain a SessionID but the endpoint requires a session.
Correct your code or endpoint declaration
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.