sasjs deploy for SAS 9 is failing

Open
#1,063 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@krishna-acondy is already working on this.

Since Dec 8, 2021.

Assessment

This issue has not been assessed yet.

Description

sasjs deploy

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)
Dominant language
TypeScript
Stars
41
Forks
6
Avg merge
3h 46m
Merged PRs (30d)
86

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sasjs/cli

All issues in sasjs/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.