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

issue/517 Fixed missing matches in stdout #165

Merged
merged 2 commits into from
May 25, 2022
Merged

issue/517 Fixed missing matches in stdout #165

merged 2 commits into from
May 25, 2022

Conversation

oliverfoster
Copy link
Member

fixes adapt-security/adapt-authoring#517

Fixed

  • Handle outputs without Error in stdout.

@oliverfoster oliverfoster self-assigned this Apr 20, 2022
@oliverfoster oliverfoster mentioned this pull request Apr 20, 2022
Copy link

@deltanetdan deltanetdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 fixes the TypeError issue, however AT build still fails as stderr returns Error: read ECONNRESET. Not sure if that should be a seperate issue?

@oliverfoster
Copy link
Member Author

Does tom's version work any better? #164

@deltanetdan
Copy link

Afraid not, same error in stderr.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@oliverfoster
Copy link
Member Author

oliverfoster commented Apr 25, 2022

@deltanetdan could you post the entire error please?

@KristofferBroberg
Copy link

KristofferBroberg commented Apr 29, 2022

Tried and got this error:
error.txt

@oliverfoster
Copy link
Member Author

That's very weird. Will have another look.

@oliverfoster
Copy link
Member Author

oliverfoster commented May 24, 2022

@taylortom i'm not quite sure why this is happening, the code in the adapt-cli seems fine, there's nothing coming out of the stderr or error objects for me, @Kristoffer has supplied a very weird error.txt that makes little sense.

I mean, it may be just that the error object and the stderr are not being passed through into the log output and so the problem isn't clear? But the compile seems to have completed correctly.

if(error || stderr) {
const e = new Error('grunt tasks failed')
e.cmd = cmd;
e.raw = stdout.match(/>> Error:\s(.+)\s/)[1]
return reject(e)
}
resolve()

@KristofferBroberg
Copy link

Perhaps @deltanetdan could attach his error output too? I recall getting something else at one point... it´s not unlikely that the error.txt above is due to my installation which is in a somewhat sloppy state.

@oliverfoster
Copy link
Member Author

oliverfoster commented May 24, 2022

@KristofferBroberg could you try to replicate your issue using the above changes?

I want to see what's in those stderr and error variable.

@KristofferBroberg
Copy link

@oliverfoster Will do tonight as I don't have access to my computer right now.

@deltanetdan
Copy link

Apologies @oliverfoster , missed the 1st mention. Console and terminal attached
issue:517-console.txt
issue517-terminal.txt

@deltanetdan
Copy link

I can DM you the .har file if you want?

@deltanetdan deltanetdan reopened this May 24, 2022
@KristofferBroberg
Copy link

KristofferBroberg commented May 24, 2022

@KristofferBroberg could you try to replicate your issue using the above changes?

I want to see what's in those stderr and error variable.

Tested:

source: null, stderr: 'Error: read ECONNRESET\n' + ' at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {\n' + ' errno: -54,\n' + " code: 'ECONNRESET',\n" + " syscall: 'read'\n" + '}\n' +
...a bunch of NPM notices

From what I can tell/guess my installation is corrupt and @danielstorey's input is more relevant for this issue.

@oliverfoster
Copy link
Member Author

which version of node are you both using?

@oliverfoster
Copy link
Member Author

I can DM you the .har file if you want?

yes please 👍

@KristofferBroberg
Copy link

which version of node are you both using?

16.14.0

@deltanetdan
Copy link

Node v16.14.2
MongoDB 4.4.10
AT 1.0.0-beta.1 (https://github.com/adapt-security/adapt-authoring)
adapt_framework 5.19.4

@oliverfoster
Copy link
Member Author

nodejs/node#42154 (comment)

Could you both upgrade to the latest v16? See if that helps?

@oliverfoster
Copy link
Member Author

I'll commit this for the moment and we'll come back to this on another ticket.

@oliverfoster oliverfoster merged commit b15da96 into master May 25, 2022
@oliverfoster oliverfoster deleted the issue/517 branch May 25, 2022 08:24
@KristofferBroberg
Copy link

nodejs/node#42154 (comment)

Could you both upgrade to the latest v16? See if that helps?

No luck!

@oliverfoster
Copy link
Member Author

ECONNRESET issue #169

@deltanetdan
Copy link

Could you both upgrade to the latest v16? See if that helps?

Also no luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Course preview type error
5 participants