It seems user is not logged in during script execution.
From your log
```
2017-11-02 11:58:47,553 TRACE [qtp2008017533-11] [org.xdi.oxauth.uma.service.UmaSessionService] (UmaSessionService.java:52) - Cookie - session_id:
2017-11-02 11:58:47,554 TRACE [qtp2008017533-11] [org.xdi.oxauth.uma.service.UmaSessionService] (UmaSessionService.java:242) - No logged in user.
```
Please make sure that user is logged in. (You can check also presence of `session_id` cookie via browser, however presence is not enough, session must be also authenticated but in your particular case http request cookie does not have `session_id` cookie with correct value which is send by browser automatically).
Thanks,
Yuriy Z