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.

error generating query builder

See original GitHub issue

Running npx edgeql-js throws

Detected package.json. Generating .js files with CommonJS module syntax.
   To override this, use the --target flag.
   Run `npx edgeql-js --help` for details.
Generating query builder into ./dbschema/edgeql-js
Connecting to EdgeDB instance...
Introspecting database schema...
A client connection error occurred; reconnecting because of "waitUntilAvailable=30000". ClientConnectionClosedError: network error: Error: connect ECONNREFUSED ::1:10726
    at RawConnection._onError
at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  source: Error: connect ECONNREFUSED ::1:10726
      at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16) {
    errno: -61,
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '::1',
    port: 10726
  }
}

Running on Macos

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
themajashurkacommented, Aug 31, 2022

I’ve found a solution with which I could finally connect and generate the builder successfully. Configure your instance with this once:

edgedb configure set listen_addresses 127.0.0.1 ::1 then npx edgeql-js

It is indeed a WSL ip4/6 anomaly, but i’m not an expert by any means. Some reference here: #376

0reactions
MiroslavPetrikcommented, Nov 4, 2022

This happens to me with node v18.

But works with node v16!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Designer: Getting Query Builder error on latest version of A...
Getting Query Builder error on latest version of Alteryx · Go to "Add / Remove Apps" and uninstall all versions of Alteryx ·...
Read more >
Query builder Error - The specified record type does not exist
Hi, when I try to save Case record on Mobile app of Dynamic crm, i get error: Query builder Error - The specified...
Read more >
Failed to capture the event processor_query.: no thrown error ...
1. Create an Query through CMDB Query Builder · 2. Select Service as Starting Node. · 3. Select Hardware as target Class. ·...
Read more >
41336 - Error occurs when you try to build a query or filter on a ...
The following errors might occur when you attempt to open the Query Builder or the Filter and Sort task: You cannot create a...
Read more >
Guardium query builder error "invalid query" - IBM
The underlying SQL generated by the query builder does not have the correct syntax. This may be caused by defects in the functionality...
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