Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

sasjs deploy for SAS 9 is failing

Đang mở
#1,063 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@krishna-acondy đang làm issue này rồi.

Từ ngày 8/12/2021.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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)
Ngôn ngữ chính
TypeScript
Star
41
Fork
6
Merge trung bình
9 giờ 40 phút
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sasjs/cli

Tất cả issue của sasjs/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.