Skip to content

sasjs deploy for SAS 9 is failing  #1063

Open
@allanbowe

Description

@allanbowe

This happens under two scenarios:

  1. Failing job (contains %abort)
  2. Large job (eg DC deploy script, 266k lines)

Failing Job error:

To reproduce, just deploy a build.sas containing the string %abort;

sasjs d -t sas9
ℹ Target sas9 was found in your local sasjsconfig.json file.                                                                 14:26:50
ℹ Processing SAS file mysas9deploy.sas ...                                                                                   14:26:50
JobExecutionError: Error Code 404: This request completed with errors.                                                       14:26:52
    at new t (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:337505)
    at h (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:326682)
    at Object.t.throwIfError (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:325633)
    at t.<anonymous> (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:330996)
    at /Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:328768
    at Object.next (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:328873)
    at /Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:327785
    at new Promise (<anonymous>)
    at r (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:327530)
    at /Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/adapter/node/index.js:2:330802
url: 
method: 
headers: 
data: 

 ERROR  An error occurred while executing the request.                                                                       14:26:52
 The SASjs runner was not found in your user folder at /User Folders/allbow/My Folder/sasjs/runner.

ℹ Please deploy the SASjs runner by running the code below and try again:                                                    14:26:52

filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;
filename ft15f001 temp;
parmcards4;
%macro sasjs_runner();
%if %symexist(_webin_fileref) %then %do;
%inc &_webin_fileref;
%end;
%mend sasjs_runner;
%sasjs_runner()
;;;;
%mm_createwebservice(path=/User Folders/&sysuserid/My Folder/sasjs,name=runner)


 ERROR  Error getting execution log                                                                                          14:26:52

✔ Services have been successfully deployed to https://sas.analytium.co.uk:8343.  

Large Job Error

To reproduce, send a vary large file (eg the data controller SAS 9 build on the development branch - sasjs cbd -t sas9)

image

➜  sas git:(development) ✗ sasjs d -t sas9
ℹ Target sas9 was found in your local sasjsconfig.json file.                                                                 20:02:08
ℹ Processing SAS file mysas9deploy.sas ...                                                                                   20:02:08

 ERROR  An error has occurred when deploying services:  The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object

  at Object.writeFile (node:internal/fs/promises:760:5)
  at Object.<anonymous> (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/utils/file/file.js:241:75)
  at step (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/utils/file/file.js:52:23)
  at Object.next (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/utils/file/file.js:33:53)
  at fulfilled (/Users/munja/.nvm/versions/node/v16.13.1/lib/node_modules/@sasjs/cli/node_modules/@sasjs/utils/file/file.js:24:58)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions