When running sasjs deploy with invalid (eg expired) credentials the response is misleading:
An error has occurred when building services Root folder has to be present on the server.
In fact there should be a response more akin to that in sasjs run, eg:
Error creating execution session
Url: https://SAS-SERVER.com
App loc: /dev/somefolder
Context: SAS Job Execution compute context
An error has occurred when running your SAS code. {"status":401,"body":"{\"errorCode\":401,\"message\":\"Unauthorized request. Check your credentials(client, secret, access token). Full authentication is
required to access this resource\",\"details\":[\"path: /compute/contexts\"],\"links\":[],\"version\":2,\"httpStatusCode\":401}"}
When running sasjs deploy with invalid (eg expired) credentials the response is misleading:
An error has occurred when building services Root folder has to be present on the server.
In fact there should be a response more akin to that in
sasjs run
, eg: