Constant HTTP2 errors

Hello, just trying to get started, looking at switching from MongoDB Atlas, and I can’t get any requests to work whatsoever, constantly getting this error:

(node:24632) UnhandledPromiseRejectionWarning: Error [ERR_HTTP2_GOAWAY_SESSION]: New streams cannot be created after receiving a GOAWAY

I’m just trying to perform a simple query as follows:

const app = require('express')();

var faunadb = require('faunadb'),
  q = faunadb.query;

var client = new faunadb.Client({
  secret: 'REDACTED',

app.listen(6969, () => console.log('API up on http://localhost:6969'));

app.get('/users/', async (req, res) => {
  const doc = await client.query(

Obviously, I have my actual key in the code I’m running.
If I run this query from shell or cli, all is good, but no matter how I formulate things in node, I just keep getting this error. I’ve also directly copied and pasted the examples from the tutorials, and received the exact same error.

I was running node 15, so I tried rolling back to 14 LTS, but no dice.

Am I just missing something obvious here?

Seems the problem is your package. Rolled back to @4.1.1 and works absolutely fine with the above code.

@scallensc Thanks for reporting this issue. We are looking into it.

Thanks for the tip @scallensc.

I got the same error when requesting:


When it should have been:


I also rolled back to 4.1.1, got a good error message, and fixed the issue. I haven’t tried again on 4.1.2

JS driver 4.1.3 should resolve these errors.

1 Like

Cool, I’ll give it a whirl tomorrow then!

@Jay-Fauna seems to be working fine, haven’t encountered any issues with it as yet.

1 Like