sasjs deploy for SAS 9 is failing
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
This happens under two scenarios:
- Failing job (contains
%abort) - 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)

➜ 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sasjs/cli
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 24/100
Maintainers usually reply within 1 day
-
Fetch parent session log when job fails without recording logMay be free again @YuryShkoda claimed this 1163 days ago, and no pull request is open. Open
sasjs/cli#1350 · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement sponsorship needed
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
enhancement sponsorship needed
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
Similar issues
-
Autocomplete still accepts an option after becoming disabledPossibly taken @Xapollon430 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
reduxjs/react-redux#2416 · 1 comment ·