A dev environment with a .env.viya file in the root of the project.
The access token had a lifetime of 1 hour which expired last week.
The refresh token has a lifetime of 2 weeks and does not expire until 29th June.
sasjs d -t viya returns an error:
$ sasjs d -t viya
i Target viya was found in your local sasjsconfig.json file. 13:40:10
i Deploying service pack to https://viya.server.com at location /Public/trevor/app/psmreact . 13:40:10
ERROR An error has occurred when deploying services: Error: Deployment failed. Request is not authenticated. 13:40:31
Please add the following variables to your .env.viya file:
CLIENT, SECRET, ACCESS_TOKEN, REFRESH_TOKEN
Given the longevity of the refresh token, this is not what I expected, but I'm not sure how best to determine which end is misbehaving.
Resubmitting sasjs auth -t viya will work around this interactively, but this is not suitable for a gitlab pipeline.
A dev environment with a
.env.viyafile in the root of the project.The access token had a lifetime of 1 hour which expired last week.
The refresh token has a lifetime of 2 weeks and does not expire until 29th June.
sasjs d -t viyareturns an error:Given the longevity of the refresh token, this is not what I expected, but I'm not sure how best to determine which end is misbehaving.
Resubmitting
sasjs auth -t viyawill work around this interactively, but this is not suitable for a gitlab pipeline.