MiguMusicApi icon indicating copy to clipboard operation
MiguMusicApi copied to clipboard

nhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

Open ZengJo opened this issue 3 years ago • 3 comments

const result = await request.send({ url: 'https://m.music.migu.cn/migu/remoting/scr_search_tag', data: { keyword, pgc: pageNo, rows: pageSize, type: typeMap[query.type], }, });

访问Migu Api会发生Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client (Accessing the MIGU API will happen Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client)

ZengJo avatar Apr 12 '21 09:04 ZengJo

这个我这边没有复现,看起来像是这个请求被提前返回或者终止了,他的返回信息有啥

jsososo avatar Apr 16 '21 02:04 jsososo

我这边是通过腾讯云部署的项目,远程请求的时候就一直超时

ZengJo avatar Apr 16 '21 05:04 ZengJo

所有接口都会还是就这一个?还有是第一次部署就这样嘛?

jsososo avatar Apr 16 '21 06:04 jsososo