question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

The following:

const zetta = require('zetta')

zetta()
  .name('Test')
  .listen(1337, function () {
    console.log('Zetta is running')
  })

Fails beautifully with the following message:

> node index.js

util.js:972
    throw new TypeError('The super constructor to "inherits" must not ' +
    ^

TypeError: The super constructor to "inherits" must not be null or undefined
    at Object.exports.inherits (util.js:972:11)
    at Object.<anonymous> (/Users/marvin/Documents/Code/zetta/node_modules/spdy/lib/spdy/connection.js:86:6)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/marvin/Documents/Code/zetta/node_modules/spdy/lib/spdy.js:20:19)

I am on macOS on node 7.7.3.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:24 (16 by maintainers)

github_iconTop GitHub Comments

3reactions
marvinrogercommented, Apr 10, 2017

And, simple workaround:

process.EventEmitter = require('events').EventEmitter

const zetta = require('zetta')

zetta()
  .name('Test')
  .listen(1337, function () {
    console.log('Zetta is running')
  })
0reactions
AdamMagalukcommented, Jun 9, 2020

Hi Scott,

I agree with you on spdy, it’s been a nightmare and moving target trying to upgrade. I agree with your assessments on http/2 and i followed the Node.js API when it was being drafted and there were holes that zetta needed. But not sure what the state is I haven’t been active in that for 2 years. Its worth re-evaluating.

During the SPDY upgrade i was also working under the constraint that Zetta versions be backwards compatible from a network and protocol perspective. If we’re left with the option of making breaking changes and zetta being abandoned we could evaluate that contraint.

I’m always happy to advise and hop on a GVC and review PRs when I can. I agree with you and would love for Zetta to live on, I think it still has plenty of potential.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the ERR_SPDY_PROTOCOL_ERROR in Chrome ...
When the ERR_SPDY_PROTOCOL_ERROR error appears indicating that the web page you're trying to visit is unavailable, it means the SPDY protocol is ...
Read more >
How to Fix ERR_SPDY_PROTOCOL_ERROR: 7 Methods
Try to visit the website again. Flushing the DNS cache and renewing the IP address should solve the the SPDY protocol issue in...
Read more >
How to Fix ERR_SPDY_PROTOCOL_ERROR in Chrome
Here are some of the things you can do to fix the problem: Update and Restart your Chrome Browser; Use Google Chrome's Incognito...
Read more >
Most Effective Ways to Fix ERR_SPDY_PROTOCOL_ERROR ...
If you are facing the problem of ERR_SPDY_PROTOCOL_ERROR in Chrome, then look no further, as we have gathered the best methods to help...
Read more >
Issues · spdy-http2/node-spdy - GitHub
Using node-spdy to start the http2 server, some special request methods cannot be recognized. #370 opened on Jun 5, 2020 by masx200.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found