微信云托管官网
【场景】:我部署了一个提供websocket的服务,使用的是php语言,用的gatewayWorker,如果你熟悉 PHP的话你应该知道这个类库。该程序需要对外开放8282端口以及1238端口,8282端口是为了让客户端连接websocket,1238是为了让我们的另一人台mvc业务服务器注册到gatewayWorker上实现:客户端post消息到mvc, mvc连接云托管中的gatewayWorker用来发送消息。 【相关信息】:为了满足8282端口,1238端口的对完访问,所以我再服务容器里安装了nginx,容器对外暴露80,然后使用不同的域名路径访问80端口,分别转发到localhost的8282/1238端口。这一步正常,无任何问题。 【问题】:然而,gatewayWorker如果和mvc没有在同一服务器部署的话,gatewayWorker会根据情况启用多个端口以保证mvc顺利注册到gatewayWorker,目前我指定的是启用4各端口来实现,分别是2900,2901,2902,2903,问题来了,访问这四个端口的协议是tcp:// , 而非http://或ws:// , 因为没有做过tcp的转发,看了一下nginx的文档实在是没有搞清楚该如何通过监听80端口,来实现转发tcp请求到本机的2900端口。 【问题总结】:因为云托管服务中运行的容器仅允许暴露一个端口,容器内运行的服务要对外提供http / tcp服务,http服务所用到的端口已经使用nginx反向代理根据不同的域名路径实现了正常访问,那么请问tcp该如何通过反向代理 根据不同的域名路径实现转发呢。拜托了
如何让docker部署忽略指定目录,尝试过修改.dockerignore,没用
公众号H5开发,使用mplogin方案进行网页授权,成功获取到了cloud对象,然后通过cloud对象的callContainer方法向微信服务器发起网络请求。 因为后端代码还在本地开发阶段,所以callContainer方法的header中X-WX-SERVICE参数没法确定。 我尝试将后端工程在vscode中启动了live code实时开发,将实时开发的端口放在前端项目中去调用接口的话报错如下: 1:X-WX-SERVICE参数填写为后端项目实时开发的容器名的情况下,报错errCode: -501000 | errMsg: Host is invalid, 2:X-WX-SERVICE参数填写为vscode中启动的微信代理调试容器名(wxcloud-localdebug-proxy 、 ccr.ccs.tencentyun.com/tcb_prd/wxcloud-localdebug-proxy),报错Error: errCode: -501000 | errMsg: Host is invalid 3:X-WX-SERVICE参数留空,报错Error: errCode: -606004 | errMsg: Cannot find path. ------------- 技术栈: 1,前端vue,公众号H5; 2,后端php --------------
这是云托管资源复用界面[图片], 这是app.js里面的配置 async call(obj, number=0){ const that = this if(that.cloud == null){ that.cloud = new wx.cloud.Cloud({ resourceAppid: 'wxexxxx1db', // 被调用的云托管所属appid resourceEnv: 'prod-xxxx31', // 被调用的云托管的环境ID }) await that.cloud.init() } ... header: { 'X-WX-SERVICE': 'springboot-yvb2', //被调用的云托管服务名称 }, 这是小程序的提示错误[图片],请问是哪里配置出错了吗?如何解决?谢谢!
部署失败,之前可以部署成功,代码没改动,现在就部署失败: [图片]
一键部署开始于 2022-06-14 15:32:01 AppID: wx5d5dcbf1b2c21e61 环境名称:weiqing-5gr0ahluc583fe58 [1/5] 创建数据库 完成 3s [2/5] 创建服务 完成 1s [3/5] 构建镜像 完成 44s [4/5] 创建版本 失败 426s 创建版本失败: version_status=deploy_fail [5/5] 发布版本 进行中 预计需要 1 分钟... - [2022-06-14 15:32:07] Started by user coding [2022-06-14 15:32:07] Running in Durability level: MAX_SURVIVABILITY [2022-06-14 15:32:08] [Pipeline] Start of Pipeline [2022-06-14 15:32:09] [Pipeline] node [2022-06-14 15:32:09] Running on Jenkins in /root/workspace [2022-06-14 15:32:09] [Pipeline] { [2022-06-14 15:32:09] [Pipeline] stage [2022-06-14 15:32:09] [Pipeline] { (检出 ZIP 包) [2022-06-14 15:32:09] Stage "检出 ZIP 包" skipped due to when conditional [2022-06-14 15:32:09] [Pipeline] } [2022-06-14 15:32:09] [Pipeline] // stage [2022-06-14 15:32:09] [Pipeline] stage [2022-06-14 15:32:09] [Pipeline] { (检出代码仓库) [2022-06-14 15:32:09] [Pipeline] sh [2022-06-14 15:32:09] + git clone ****** . [2022-06-14 15:32:09] Cloning into '.'... [2022-06-14 15:32:10] [Pipeline] sh [2022-06-14 15:32:10] + git checkout master [2022-06-14 15:32:10] Already on 'master' [2022-06-14 15:32:10] Your branch is up-to-date with 'origin/master'. [2022-06-14 15:32:10] [Pipeline] } [2022-06-14 15:32:10] [Pipeline] // stage [2022-06-14 15:32:10] [Pipeline] stage [2022-06-14 15:32:10] [Pipeline] { (构建 Docker 镜像) [2022-06-14 15:32:10] [Pipeline] sh [2022-06-14 15:32:10] + docker login -u ****** -p ****** ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926 [2022-06-14 15:32:10] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-06-14 15:32:11] WARNING! Your password will be stored unencrypted in /root/.docker/config.json. [2022-06-14 15:32:11] Configure a credential helper to remove this warning. See [2022-06-14 15:32:11] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-06-14 15:32:11] [2022-06-14 15:32:11] Login Succeeded [2022-06-14 15:32:11] [Pipeline] sh [2022-06-14 15:32:11] + docker build -f Dockerfile -t ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926 . [2022-06-14 15:32:11] Sending build context to Docker daemon 70.14kB [2022-06-14 15:32:11] Step 1/3 : FROM hnpx/takan:latest [2022-06-14 15:32:13] latest: Pulling from hnpx/takan [2022-06-14 15:32:13] 7b1a6ab2e44d: Pulling fs layer [2022-06-14 15:32:13] f9f3e4499328: Pulling fs layer [2022-06-14 15:32:13] e4e5e36b03a5: Pulling fs layer [2022-06-14 15:32:13] df506a1358f3: Pulling fs layer [2022-06-14 15:32:13] 7b1a6ab2e44d: Verifying Checksum [2022-06-14 15:32:13] 7b1a6ab2e44d: Download complete [2022-06-14 15:32:14] df506a1358f3: Verifying Checksum [2022-06-14 15:32:14] df506a1358f3: Download complete [2022-06-14 15:32:14] 7b1a6ab2e44d: Pull complete [2022-06-14 15:32:20] f9f3e4499328: Download complete [2022-06-14 15:32:25] f9f3e4499328: Pull complete [2022-06-14 15:32:34] e4e5e36b03a5: Verifying Checksum [2022-06-14 15:32:34] e4e5e36b03a5: Download complete [2022-06-14 15:32:34] e4e5e36b03a5: Pull complete [2022-06-14 15:32:34] df506a1358f3: Pull complete [2022-06-14 15:32:34] Digest: sha256:1da6401d3d3cbfbd57a59d75ae29a2aca4c03de6afdc5e72fe7cd086a8f73e58 [2022-06-14 15:32:34] Status: Downloaded newer image for hnpx/takan:latest [2022-06-14 15:32:34] ---> 8a7608168cb4 [2022-06-14 15:32:34] Step 2/3 : EXPOSE 8100 [2022-06-14 15:32:34] ---> Running in e2e9e79878b9 [2022-06-14 15:32:34] Removing intermediate container e2e9e79878b9 [2022-06-14 15:32:34] ---> c409bc35bc94 [2022-06-14 15:32:34] Step 3/3 : CMD ["bash","start.sh"] [2022-06-14 15:32:34] ---> Running in 9e4d6417e209 [2022-06-14 15:32:34] Removing intermediate container 9e4d6417e209 [2022-06-14 15:32:34] ---> 4a6ae02fb3a4 [2022-06-14 15:32:34] Successfully built 4a6ae02fb3a4 [2022-06-14 15:32:34] Successfully tagged ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926 [2022-06-14 15:32:34] [Pipeline] } [2022-06-14 15:32:34] [Pipeline] // stage [2022-06-14 15:32:34] [Pipeline] stage [2022-06-14 15:32:34] [Pipeline] { (推送 Docker 镜像到 TCR) [2022-06-14 15:32:35] [Pipeline] sh [2022-06-14 15:32:35] + docker push ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926 [2022-06-14 15:32:35] The push refers to repository [ccr.ccs.tencentyun.com/tcb-******-fbbl/weiqing-5gr0ahluc583fe58_w7-301764] [2022-06-14 15:32:35] 46a9c39b8386: Preparing [2022-06-14 15:32:35] a5985d786bf9: Preparing [2022-06-14 15:32:35] 5381db41d99a: Preparing [2022-06-14 15:32:35] 9f54eef41275: Preparing [2022-06-14 15:32:35] 5381db41d99a: Layer already exists [2022-06-14 15:32:35] 9f54eef41275: Layer already exists [2022-06-14 15:32:37] 46a9c39b8386: Pushed [2022-06-14 15:32:47] a5985d786bf9: Pushed [2022-06-14 15:32:49] w7-301764-20220614153206-1655191926: digest: sha256:42633095633c7be8a78cdea2afec7a43415f18562b92c294e789983c8788c5d1 size: 1162 [2022-06-14 15:32:49] [Pipeline] } [2022-06-14 15:32:49] [Pipeline] // stage [2022-06-14 15:32:49] [Pipeline] } [2022-06-14 15:32:49] [Pipeline] // node [2022-06-14 15:32:49] [Pipeline] End of Pipeline [2022-06-14 15:32:49] Finished: SUCCESS *** -----------服务w7-301764部署w7-301764-009----------- 2022-06-14 15:32:53 create_version_describe_cluster : succ, 2022-06-14 15:32:53 create_version_check_vpc : succ, 2022-06-14 15:32:54 create_eks_virtual_service : succ, 2022-06-14 15:32:55 check_eks_virtual_service : succ, Back-off restarting failed container, [pod]:[Successfully assigned default/w7-301764-009-57df6bc7c8-bg977 to eklet-subnet-j0rtfzdd-192863; Starting pod sandbox eks-a0uatx15; Sync endpoints; Pulling image "ccr.ccs.tencentyun.com/tcb-100026050956-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb-100026050956-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926" in 16.56112671s; Created container w7-301764-009; Started container w7-301764-009; Container image "ccr.ccs.tencentyun.com/tcb-100026050956-fbbl/weiqing-5gr0ahluc583fe58_w7-301764:w7-301764-20220614153206-1655191926" already present on machine; Back-off restarting failed container; ] *** 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused redis 启动 程序 启动 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused redis 启动 程序 启动 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成 旧应用进程id: redis 启动 程序 启动 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8100: Connection refused 完成
<br /> <b>Fatal error</b>: Uncaught Error: Call to undefined function mysqli_connet() in /var/www/html/index.php:3 Stack trace: #0 {main} thrown in
如题
如题
调用的接口是 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_1.shtml 发起商家转账API请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches 返回错误如下: 此IP地址不允许调用该接口 微信云托管,我看后台是没有固定的ip地址,然后用ping的方式获取到的ip地址设置到api的ip白名单里 也不行。请问要怎么解决呢?
https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/development/pay/order/unified.htmlhttps://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/development/pay/callback/
[图片] 在用微信云托管部署的后台 调用getAccessToken 的接口 报错了,看着日志好像是签名啥的,之前一直是好的,就最近有问题,求助!
maven中添加了第三方的本地sdk依赖,这个要如果线上部署? [图片]
AttributeError: 'NoneType' object has no attribute 'get' 这是日志提示的内容,意思是我传入为空无法用get。但是我postman测试是可行的,在云端调试则不行。 contenttype也同样是application/json [图片] 这是另外一个接口(不需要传入数据就能返回数据),这里状态码200,也能正常返回数据 下面是我出问题的接口,接受不到我传入的数据 [图片] [图片] 用json格式传入,日志显示接收到为空……是我对这个云端调试的使用方法错了吗 [图片] 在postman能正常接收到
我尝试使用微信云托管,想先根据微信官网实例熟悉流程: 我是根据https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/quickstart/template/official.html找到https://github.com/WeixinCloud/wxcloudrun-thinkphp-apache把下载下来的wxcloudrun-thinkphp-apache-main.zip解压,然后部署的。 因为云端无法看到和修改代码,我先本地调试逻辑没问题之后再部署上云,参考了以下文档 https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/guide/debug/ 但是Step 1-8都成功后,执行task出现问题,麻烦看下,是什么原因?请看截图。[图片]
使用的云托管官方的springboot模板。直接下载下来。然后按照教程进行本地调试。在安装vs插件后,启动docker的时候,报错。 [图片] 看样子是容器里的maven问题。尝试了一些办法,没有解决。有没有遇到过的兄弟。
云托管里面请求付款到零钱的api会报IP地址未配置白名单,但是云托管没有固定IP地址,并且这个api貌似也不可以配置开放接口权限,这个要怎么处理呢?
我用ApiPost测试https://api.weixin.qq.com/_/cos/metaid/encode接口,返回404。请问这个获取文件元数据的接口还没有完成吗? [图片]
在开发公众号应用时,微信云托管做到了免鉴权,但是涉及到要获取微信用户头像和昵称的时候要怎么处理,看你们文档里面写的是后端直接获取,但没有说是在哪个api获取,/cgi-bin/user/info这个api已经不返回头像和昵称了,麻烦帮忙解答一下,谢谢
你好,我想咨询一下,托管在微信云托管的静态网站,里面调用微信的JSSDk的话,签名还是要实时计算吗?可以免签名么?