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

Aliv crashes when ran with node >= 11.1.0 and --http2 is enabled #40

Open
bernardbr opened this issue Feb 13, 2019 · 4 comments
Open

Aliv crashes when ran with node >= 11.1.0 and --http2 is enabled #40

bernardbr opened this issue Feb 13, 2019 · 4 comments

Comments

@bernardbr
Copy link
Contributor

Aliv crashes when ran with node >= 11.1.0

When we ran Aliv using node version 11.1.0 or last one, the spdy version used by Aliv crashes...

class FastBuffer extends Uint8Array {} ^ 
RangeError: Invalid typed array length: -4095

It's related with spdy-http2/node-spdy#350

@ericmdantas
Copy link
Owner

ericmdantas commented Feb 13, 2019

v1.11.2 released, see if it works, please.

ericmdantas added a commit that referenced this issue Feb 13, 2019
@ericmdantas
Copy link
Owner

Actually, it doesn't seem to be working. People are advising others to update from spdy to http2 module, but the http2 module doesn't seem to work with express yet.

In your case, you can set "http2": false in your .alivrc file, like bellow:

{
  // ...
  "http2": false,
  // ...
}

I'll see what I can do to migrate meanwhile.

@ericmdantas ericmdantas reopened this Feb 13, 2019
@ericmdantas
Copy link
Owner

ericmdantas commented Feb 13, 2019

Seems like this is the issue we'll have to keep track of:

Issue: expressjs/express#3388
PR: expressjs/express#3730

@bernardbr
Copy link
Contributor Author

bernardbr commented Feb 14, 2019

Thanks @ericmdantas

I did a downgrade to a LTS node version and it worked for me...

@ericmdantas ericmdantas changed the title Aliv crashes when ran with node >= 11.1.0 Aliv crashes when ran with node >= 11.1.0 and --http2 is enabled Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants