Worker error : D1_ERROR: Network connect

For Workes & Pages, what is the name of the domain?

Secure and private endpoint, I cannot share this.

What is the error number?

D1_ERROR: Network connection lost.

What is the error message?

D1_ERROR: Network connection lost.

What is the issue or error you’re encountering

Today I have widespread issue with my worker that are timing out. They were working fine yesterday.

What steps have you taken to resolve the issue?

I try to redeploy the worker, I did not had any error but it did not solve the issue. The realtime stream of log timeout, I do not have any error but I almost have no data. When one log manage to show up, I have various error related to my KV or my D1 call like : “D1_ERROR: Network connection lost.”. The service is overall massively degraded on many of my worker that worker just fine yesterday.

What are the steps to reproduce the issue?

I have postman unit test for all my endpoint, they all started to crash but were working fine yesterday.

Hi,

Thank you for reaching out to us. We typically see Network Connection Lost when the origin server disconnects, rather than the client. Usually, when the client disconnects, the worker is canceled entirely and no more code executes. When the origin server disconnects, the exception could be thrown by fetch() , or could be thrown by response.text() or other methods that read the response body. Are you still experiencing issues now?

We look forward to your response.

Kindly,

Hello,

I am having this same issue since this morning. In addition I can’t load my database in the D1 dashboard. When i get a response from my api after about 10 seconds, it errors and in the logs I see “Error: D1_ERROR: Network connection lost.”. Everything was working fine yesterday and I haven’t updated anything since. I have multiple D1 databases which are all fine and not having any issues, it is just one in particular that this is happening with.

Any help would be greatly appreciated, thank you!

KJ

Can you please share your database ID if this is still occurring and we can escalate?

Around 6-8 hours later everything appeared to be working fine, thanks!

I am having the exact issue as well .

I haven’t made any changes to either worker or d1 database for the past couple of months.

My domain thriendly.com .

Please suggest a proper resolution for this.

Can you please provide your database ID? Is this happening consistently on all requests for you?

@cherryjimbo Yes its happening consistently almost 90% of the requests. For some requests I am getting above error and for some requests I get response after a very long time.

Here is my D1 database id: 3320cfa1-295a-4c44-9238-96f0d8ea5b75

Let me know if you need more detaills.

I am having the same issue on a tiny database with very little traffic.

Can you also please share you database ID?

I’ve escalated this, thanks. Hopefully someone will get back to you soon.

Sure it’s faa2d2d9-1abe-4380-9959-12c509cac8a6

By the way I encountered this problem a few days ago. Deleted the database and recreated it. Then it recurred.

Thanks, I’ve escalated this one too.