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.

"[Errno 2] No such file or directory" when running any query.

See original GitHub issue

I’m very new to EdgeDB so I hope I’m providing all the info you need for this issue.

My implementation was working at first and suddenly I started getting this issue whenever I run an EdgeDB query:

InternalServerError: [Errno 2] No such file or directory
    at RawConnection._parseErrorMessage (/Users/lits/Dev/feather-fastify/node_modules/edgedb/dist/baseConn.js:280:21)
    at RawConnection._executeFlow (/Users/lits/Dev/feather-fastify/node_modules/edgedb/dist/baseConn.js:587:34)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RawConnection.fetch (/Users/lits/Dev/feather-fastify/node_modules/edgedb/dist/baseConn.js:716:17)
    at async ClientConnectionHolder.retryingFetch (/Users/lits/Dev/feather-fastify/node_modules/edgedb/dist/client.js:178:26)
    at async Client.query (/Users/lits/Dev/feather-fastify/node_modules/edgedb/dist/client.js:468:20)
    at async exports.default (/Users/lits/Dev/feather-fastify/src/initialize.ts:9:18) {
  source: undefined
}

I’m running it like this:

import { createClient } from 'edgedb';

const db = createClient();

const result = await db.query('select "Hello world";');
console.log(result);

The version of edgedb in my package.json is:

"edgedb": "^0.20.9"

You can check out the project for the backend I’m getting this issue on here.

Any ideas you have on how to fix this would be really appreciated, thank you in advance!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
elpranscommented, May 7, 2022

Try edgedb instance restart $(edgedb project info --instance-name)

0reactions
cdiezmorancommented, May 7, 2022

That fixed it thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

open() gives FileNotFoundError/IOError: Errno 2 No such file ...
When trying to create a new file using a file mode like w , the path to the new file still needs to...
Read more >
How to fix FileNotFoundError Errno 2 no such file or directory
The error FileNotFoundError Errno 2 no such file or directory occurs when Python cannot find the specified file in the current directory.
Read more >
FileNotFoundError: [Errno 2] No such file or directory
When you open a file with the name "filename.ext"; you are telling the open() function that your file is in the current working...
Read more >
FileNotFoundError: [Errno 2] No such file or directory: 'bq' #27
Whenever example command logica primes.l run Prime is executed, error is produced: FileNotFoundError: [Errno 2] No such file or directory: ...
Read more >
FileNotFoundError: [Errno 2] No such file or directory: - YouTube
Hello everyone, today's video is a short one on an error that I got during my last project. I have been short on...
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