开发者社区> 问答> 正文

使用钉钉的 ding design cli进行小程序的upload失败

我在公司内网环境下,使用钉钉的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

看报错提示,网络是连接上了,但是不知道因为什么报错了,请问如下解决

展开
收起
木兮兮 2024-12-13 11:47:18 33 0
1 条回答
写回答
取消 提交回答
  • 已解决,还是网络不通的问题,内网要使用要打通非常多的域名权限,域名体系有点乱,找运维同事抓包处理的

    2024-12-17 17:15:46
    赞同 55 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
钉钉小程序——为工作方式插上翅膀 立即下载
钉钉客户端自动化的应用 立即下载
使命必达 —— 钉钉企业级 消息服务的机遇与挑战 立即下载