我在公司内网环境下,使用钉钉的ding desing cli工具进行小程序上传,执行命令 ding dev upload,报错如下:
stack: Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
✔ DingTalk Design CLI 启动中
error 上传失败 write EPIPE, PUT http://dingtalk-miniapp-private.oss-cn-shanghai.aliyuncs.com/5000000006186642/1734060626048 -1 (connected: true, keepalive socket: false, agent status: {"createSocketCount":1,"createSocketErrorCount":0,"closeSocketCount":0,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"dingtalk-miniapp-private.oss-cn-shanghai.aliyuncs.com:80:":1},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}
tip [stdioCommands] 可以支持的子命令有 help,updateConfig,lint,ide,qrcode,qrcode:debug,upload,web
log {"code":2,"msg":"write EPIPE, PUT http://dingtalk-miniapp-private.oss-cn-shanghai.aliyuncs.com/5000000006186642/1734060626048 -1 (connected: true, keepalive socket: false, agent status: {\"createSocketCount\":1,\"createSocketErrorCount\":0,\"closeSocketCount\":0,\"errorSocketCount\":0,\"timeoutSocketCount\":0,\"requestCount\":0,\"freeSockets\":{},\"sockets\":{\"dingtalk-miniapp-private.oss-cn-shanghai.aliyuncs.com:80:\":1},\"requests\":{}}, socketHandledRequests: 1, socketHandledResponses: 0)\nheaders: {}","d1":"1.0.10","d2":"devops","d3":"dev","d4":"upload","c1":["/usr/local/Cellar/node/23.2.0_1/bin/node","/usr/local/bin/ding","dev","upload","--verbose"],"c2":"{\"project\":\"/Users/devops/dingding_miniprogram/\",\"miniAppId\":\"5000000006186642\",\"packageVersion\":\"\"}","c3":"ResponseError: write EPIPE, PUT http://dingtalk-miniapp-private.oss-cn-shanghai.aliyuncs.com/5000000006186642/1734060626048 -1 (connected: true, keepalive socket: false, agent status: {\"createSocketCount\":1,\"createSocketErrorCount\":0,\"closeSocketCount\":0,\"errorSocketCount\":0,\"timeoutSocketCount\":0,\"requestCount\":0,\"freeSockets\":{},\"sockets\":{\"dingtalk-miniapp-private.oss-cn-shanghai.aliyuncs.com:80:\":1},\"requests\":{}}, socketHandledRequests: 1, socketHandledResponses: 0)\nheaders: {}\n at Client.requestError (/usr/local/lib/node_modules/dingtalk-design-cli/node_modules/ali-oss/lib/client.js:392:13)\n at Client.request (/usr/local/lib/node_modules/dingtalk-design-cli/node_modules/ali-oss/lib/client.js:245:22)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async proto.request (/usr/local/lib/node_modules/dingtalk-design-cli/node_modules/ali-oss/lib/client.js:223:12)\n at async Client.putStream (/usr/local/lib/node_modules/dingtalk-design-cli/node_modules/ali-oss/lib/object.js:154:18)"}
目前已经开通了内网服务器到以下域名的访问权限,并且验证是通的:https://open-dev.dingtalk.com/
https://oapi.dingtalk.com
https://api.dingtalk.com
https://open.dingtalk.com/
https://dingtalk-miniapp-private.oss-cn-shanghai.aliyuncs.com
https://mdap.alipay.com
https://oss-cn-shanghai.aliyuncs.com
https://oss-cn-shanghai-internal.aliyuncs.com
看报错提示,网络是连接上了,但是不知道因为什么报错了,请问如下解决
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。