Skip to content

Conversation

@oscarkuo
Copy link
Contributor

@oscarkuo oscarkuo commented Sep 4, 2016

see http://stackoverflow.com/questions/37278228/invalid-key-length-after-upgrading-to-nodejs-6
and nodejs/node#6813

The optimal solution is probably to change your code to use Buffer instead of string everywhere but this works for me and hopefully illustrates what needs to be done.

@coveralls
Copy link

coveralls commented Sep 4, 2016

Coverage Status

Coverage increased (+0.006%) to 96.508% when pulling 1316a87 on oscarkuo:21-fix-invalid-key-lengh-error-node-6 into 5079229 on NeoXiD:master.

@oscarkuo oscarkuo changed the title 21 fix invalid key lengh error node 6 fixes #21 invalid key lengh error node 6 Sep 4, 2016
@ppmathis
Copy link
Member

ppmathis commented Sep 6, 2016

Hi @oscarkuo , thanks a lot for your pull request. I'll check out next weekend how much work it would be to switch everything over to Buffer without loosing compatibility to older Node.js versions. I will then either merge your pull request or update the whole codebase.

@ppmathis
Copy link
Member

I decided to merge your pull request for now, while also starting to work on an updated branch, which will probably break backwards compatibility to older Node.js versions but should offer some improvements as well, one of them being to use Buffer everywhere. Thanks once more!

@ppmathis ppmathis merged commit 94e3a9b into snapserv:master Sep 11, 2016
ppmathis pushed a commit that referenced this pull request Sep 11, 2016
* fixed invalid key length error when running in node 6

* change to use old Buffer API for compatibility with old node versions. #21
ppmathis pushed a commit that referenced this pull request Sep 11, 2016
* fixed invalid key length error when running in node 6

* change to use old Buffer API for compatibility with old node versions. #21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants