Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zowe jobs view sfbi error #307

Closed
Tracked by #1544
MikeBauerCA opened this issue Apr 2, 2019 · 1 comment
Closed
Tracked by #1544

zowe jobs view sfbi error #307

MikeBauerCA opened this issue Apr 2, 2019 · 1 comment
Labels
bug Something isn't working priority-high Production outage - this quarter or at least next quarter

Comments

@MikeBauerCA
Copy link
Contributor

MikeBauerCA commented Apr 2, 2019

When trying to view a specific spool file, I am receiving a socket hangup error.

For example, zowe jobs view sfbi JOB06924 104 yields the following in the log:

[ERROR] [CommandYargs.js:134] [ { success: false,
    message:
     'z/OSMF REST API Error:\nhttp(s) request error event called\nError: socket hang up',
    stdout: <Buffer >,
    stderr:
     <Buffer 43 6f 6d 6d 61 6e 64 20 45 72 72 6f 72 3a 0a 7a 2f 4f 53 4d 46 20 52 45 53 54 20 41 50 49 20 45 72 72 6f 72 3a 0a 68 74 74 70 28 73 29 20 72 65 71 75 ... >,
    data: {},
    error:
     { msg:
        'z/OSMF REST API Error:\nhttp(s) request error event called\nError: socket hang up',
       causeErrors: [Error],
       source: 'client',
       errorCode: undefined,
       port: 443,
       host: '****',
       basePath: '',
       httpStatus: undefined,
       errno: undefined,
       syscall: undefined,
       payload: undefined,
       headers: [Array],
       resource: '/zosmf/restjobs/jobs/MARBDB2/JOB06924/files/104/records',
       request: 'GET',
       additionalDetails:
        'HTTP(S) client encountered an error. Request could not be initiated to host.\nReview connection details (host, port) and ensure correctness.\n\nHost:      ****\nPort:      443\nBase Path: \nResource:  /zosmf/restjobs/jobs/MARBDB2/JOB06924/files/104/records\nRequest:   GET\nHeaders:   [{"Content-Type":"text/plain; charset=utf8"},{"X-CSRF-ZOSMF-HEADER":true}]\nPayload:   undefined' } } ]

It is related to the size of the spool file. It occurs for me when the byte count of the spool file is between 3416 and 3431 inclusive. As an example, it occurs in the following spool content when the final | on the heading row is in the range (inclusive) shown below:

1
1PAGE    1
 ***INPUT STATEMENT:
    SELECT * FROM EVENT.MARBLE
                                             +----------------------------------------------+
                                             |   COLOR    |   INVENTORY    |      COST     |              |
                                             +----------------------------------------------+
                                           1_| WHITE      |             25 |              5 |
                                           2_| RED        |             25 |              5 |
                                           3_| ORANGE     |             25 |              5 |
                                           4_| YELLOW     |             25 |              5 |
                                           5_| GREEN      |             25 |              5 |
                                           6_| BLUE       |             25 |              5 |
                                           7_| INDIGO     |             25 |              5 |
                                           8_| VIOLET     |             25 |              5 |
                                           9_| BLACK      |             25 |              5 |
                                          10_| GRAY       |             25 |              5 |
                                          11_| BROWN      |             25 |              5 |
                                          12_| NAVY       |             25 |              5 |
                                          13_| CYAN       |             25 |              5 |
                                          14_| MAGENTA    |             25 |              5 |
                                          15_| PINK       |             25 |              5 |
                                          16_| TAN        |             25 |              5 |
                                          17_| AQUA       |             25 |              5 |
                                          18_| MAROON     |             25 |              5 |
                                          19_| OLIVE      |             25 |              5 |
                                          20_| TEAL       |             25 |              5 |
                                          21_| CORAL      |             25 |              5 |
                                          22_| ROSE       |             25 |              5 |
                                          23_| SAND       |             25 |              5 |
                                          24_| PURPLE     |             25 |              5 |
                                          25_| GOLD       |             25 |              5 |
                                          26_| SILVER     |             25 |              5 |
                                          27_| BRONZE     |             25 |              5 |
                                          28_| PEACH      |             25 |              5 |
                                          29_| LIME       |             25 |              5 |
                                          30_| LAVENDER   |              1 |              0 |
                                             +----------------------------------------------+
0SUCCESSFUL RETRIEVAL OF         30 ROW(S)
@zFernand0 zFernand0 added the bug Something isn't working label Aug 12, 2022
@gejohnston gejohnston added priority-medium Not functioning - next quarter if capacity permits priority-high Production outage - this quarter or at least next quarter for-review-pm and removed priority-medium Not functioning - next quarter if capacity permits labels Oct 11, 2022
@ATorrise
Copy link
Contributor

ATorrise commented Dec 7, 2022

@MikeBauerCA After testing with a 3429 byte spool file, I have not been able to recreate your issue. Because of this and the age of the issue, I will be closing it out now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-high Production outage - this quarter or at least next quarter
Projects
None yet
Development

No branches or pull requests

4 participants