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.

AssertionError: false == true

See original GitHub issue

node -v 6.9.2 http2@3.3.6

Debug: internal, implementation, error
    AssertionError: false == true
    at Connection._send (/var/www/revizor-game.ru/node_modules/http2/lib/protocol/connection.js:326:9)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)

My server.js

$lib.s = new Hapi.Server();
var listener = http2.createServer({
    key: fs.readFileSync('/var/www/revizor-game.ru.key', 'utf8'),
    cert: fs.readFileSync('/var/www/ca.crt', 'utf8'),
    pfx: fs.readFileSync('/var/www/pfx.pfx')
});

$lib.s.connection({
    listener: listener,
    host: 'revizor-game.ru',
    port: 443,
    tls: true
});

and boot.js (clustering) - http://pastebin.com/YzGsJVUk

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:5
  • Comments:19

github_iconTop GitHub Comments

5reactions
mattisxcommented, Jan 10, 2017

Getting this as well with node-apn:

Node version: 6.9.1

AssertionError: false == true
at Connection._send (.../node_modules/http2/lib/protocol/connection.js:343:9)
2reactions
thughescommented, Feb 22, 2017

@nwgh Also have seen this assert when running node-http2 with node-apn: https://github.com/molnarg/node-http2/blob/master/lib/protocol/connection.js#L326

Looking at the call to this.push where moreNeeded is set, I’m not sure that the assert makes sense as written:

var moreNeeded = this.push(frame);

Here’s the code for push: https://github.com/molnarg/node-http2/blob/master/lib/protocol/flow.js#L277

In the case where this._push(frame) returns null (i.e., the frame is too large for the window and split or the window size is <=0), moreNeeded will be set to null. Then this._queue.push(frame) is called, but moreNeeded is still null. Thus, any time the window is <=0 or the frame is split we’ll hit this assert.

  var moreNeeded = null;
  if (this._queue.length === 0) {
    moreNeeded = this._push(frame);
  }

  if (moreNeeded === null) {
    this._queue.push(frame);
  }

  return moreNeeded;
Read more comments on GitHub >

github_iconTop Results From Across the Web

False is not true error? - python - Stack Overflow
I'm trying to set global definitions to True, but I'm always getting an error saying "AssertionError: False is not True".
Read more >
AssertionError: False is not true : Make sure you ... - Treehouse
This is importing a function named `tweet` from a file that we unfortunately don't have access to change.
Read more >
unit test:AssertionError: False is not true - Google Groups
It seems to me that the error messages you're getting are pretty clear - you're asserting that certain content exists, and it doesn't....
Read more >
Practice :: Learn Python by Nina Zakharenko
You should have gotten an error: AssertionError: False is not true caused by self.assertTrue(divisible_by(10, 3)) . Makes sense, because 10 is not evenly ......
Read more >
AssertionError: False is not true · Issue #3 - GitHub
Hi, I am back again. When running the test.py, I got the following error File "test.py", line 69, in test_gradients self.
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