Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZengJo opened this issue Apr 12, 2021 · 3 comments

Comments

@ZengJo
Copy link

ZengJo commented Apr 12, 2021

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)

@jsososo
Copy link
Owner

jsososo commented Apr 16, 2021

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

@ZengJo
Copy link
Author

ZengJo commented Apr 16, 2021

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

@jsososo
Copy link
Owner

jsososo commented Apr 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants