Skip to content

auth token expires when getting next page of results #120

@fletcherpete72

Description

@fletcherpete72

There are a lot of workflows in product-support-poc-iap01.trial.itential.io SaaS instance. First page of 100 is returned ok, then the next page of 100 (see workflows request with limit/skip params below) gets an auth token error.

},"bfe3":{"c5d2":{"type":"standard","state":"success"}},"c5d2":{"e747":{"type":"standard","state":"success"}},"f40e":{"e610":{"type":"standard","state":"success"}},"e747":{"f40e":{"type":"standard","state":"success"}},"bcde":{"2759":{"type":"standard","state":"success"}},"e610":{"bcde":{"type":"standard","state":"success"}},"107d":{"5bd7":{"type":"standard","state":"success"}},"5bd7":{"c3cd":{"type":"standard","state":"success"}},"c3cd":{"e222":{"type":"standard","state":"success"}},"e222":{"788":{"type":"standard","state":"success"}}},"type":"automation","warnings":[]}],"skip":0,"end":100,"count":100,"total":146,"limit":100,"previous":null,"next":"/automation-studio/workflows?limit=100&skip=100"}
2025-04-11T14:12:40Z TRC pkg/services.(*ServiceClient).GetRequest.client.51
2025-04-11T14:12:40Z TRC pkg/services.(*ServiceClient).Do.client.24
2025-04-11T14:12:40Z TRC pkg/services.Do.services.39
2025-04-11T14:12:40Z TRC pkg/client.(*HttpClient).send.client.132
2025-04-11T14:12:40Z TRC pkg/client.(*HttpClient).setScheme.client.228
2025-04-11T14:12:40Z TRC pkg/client.(*HttpClient).setPort.client.242
2025-04-11T14:12:40Z TRC pkg/client.(*HttpClient).newUrl.client.267
2025-04-11T14:12:40Z INF GET https://product-support-poc-iap01.trial.itential.io:443/automation-studio/workflows?limit=100&skip=100
2025-04-11T14:12:40Z DBG Request body is empty
2025-04-11T14:12:40Z TRC pkg/client.(*HttpClient).newHttpRequest.client.295
2025-04-11T14:12:40Z INF HTTP response is 401 Unauthorized
2025-04-11T14:12:40Z TRC pkg/client.(*HttpClient).newResponse.client.200
2025-04-11T14:12:40Z ERR status code = 401, expected status code = 200 error="status code = 401, expected status code = 200"
2025-04-11T14:12:40Z ERR The specified authorization token is malformed or does not correspond with an active session error="The specified authorization token is malformed or does not correspond with an active session"
Error: The specified authorization token is malformed or does not correspond with an active session

2025-04-11T14:12:40Z FTL error="The specified authorization token is malformed or does not correspond with an active session"
(deployer-venv) [peter.fletcher@localhost scripts]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions