sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

sasjs deploy not recognising 401 #361

Closed allanbowe closed 3 years ago

allanbowe commented 3 years ago

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}"} 
ghost commented 3 years ago

:tada: This issue has been resolved in version 2.23.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: