twikoojs / twikoo-docker Goto Github PK
View Code? Open in Web Editor NEW💬 Twikoo Docker 镜像,用于本地部署
Home Page: https://twikoo.js.org/
License: MIT License
💬 Twikoo Docker 镜像,用于本地部署
Home Page: https://twikoo.js.org/
License: MIT License
使用 docker logs 查看日志发现如下错误
Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/imaegoo/twikoo/issues
请求参数: {}
错误信息: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (internal/errors.js:322:7)
at ServerResponse.setHeader (_http_outgoing.js:561:11)
at allowCors (/app/node_modules/twikoo-vercel/api/index.js:155:14)
at module.exports (/app/node_modules/twikoo-vercel/api/index.js:66:5)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
code: 'ERR_HTTP_HEADERS_SENT'
}
请求返回: {
code: 1000,
message: 'Cannot set headers after they are sent to the client'
}
(node:1) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (internal/errors.js:322:7)
at ServerResponse.setHeader (_http_outgoing.js:561:11)
at ServerResponse.writeHead (_http_server.js:293:21)
at ServerResponse.response.json (/app/index.js:11:10)
at module.exports (/app/node_modules/twikoo-vercel/api/index.js:150:24)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
修改yaml端口为
ports:
- 8777:8777
但服务依旧在8080
请问是我配置错了还是bug?
大佬带带
期待已久的功能,太令人兴奋了!
未使用Docker,windows下Node服务已部署,显示“云函数运行正常”
请问hexo butterfly前端应该如何配置
期待回复!谢谢先!!
错误日志:
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:135521) Warning: Label 'POST_SUBMIT' already exists for console.time()
(Use `node --trace-warnings ...` to show where the warning was created)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:135521) Warning: Label 'POST_SUBMIT' already exists for console.time()
(node:135521) Warning: Label 'POST_SUBMIT' already exists for console.time()
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /opt/twikoo-docker/index.js:48:27
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:135521) Warning: Label 'POST_SUBMIT' already exists for console.time()
(node:135521) Warning: Label 'POST_SUBMIT' already exists for console.time()
(node:135521) Warning: Label 'POST_SUBMIT' already exists for console.time()
(node:135521) Warning: Label 'POST_SUBMIT' already exists for console.time()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.