apex / apex/up

"Error: write EPIPE" on lambda errors (it worsens with provisioned concurrency)

Đang mở
#801 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
8.8k
Fork
383
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Prerequisites

* [x] I am running the latest version. (`up upgrade`)
* [X] I searched to see if the issue already exists.
* [X] I inspected the verbose debug output with the `-v, --verbose` flag.
* [X] Are you an Up Pro subscriber?

## Description
We have been using Up for our lambda solution (express server) for a while now (~2 years) and
we were seeing some errors like this (but not that frequently):
```
{"timestamp":1580983517551,"message":"ERROR\tUncaught Exception\t{\"errorType\":\"Error\",\"errorMessage\":\"write EPIPE\",\"code\":\"EPIPE\",\"errno\":\"EPIPE\",\"syscall\":\"write\",\"stack\":[\"Error: write EPIPE\",\" at WriteWrap.afterWrite [as oncomplete] (net.js:789:14)\"]}","extractedFields":{"event":"ERROR\tUncaught Exception\t{\"errorType\":\"Error\",\"errorMessage\":\"write EPIPE\",\"code\":\"EPIPE\",\"errno\":\"EPIPE\",\"syscall\":\"write\",\"stack\":[\"Error: write EPIPE\",\" at WriteWrap.afterWrite [as oncomplete]
```
to provide a bit more context, we also get an odd message coming almost an hour after this error shows up.
![image](https://user-images.githubusercontent.com/226559/74201561-f9173900-4c1e-11ea-9236-6595574a57cd.png)

We decided to add provisioned concurrency and noticed that this error started happening more often.

Currently, this problem is producing 500 to some of our consumers.

## Steps to Reproduce

not sure I can describe this in a generic way but we see it quite often with or without provisioned concurrency.

## Love Up?
We are using Up pro currently.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.