大前端
-
在 K8s 中 HTTP 响应 502,message:An invalid response was received from the upstream server
1、在 K8s 中 HTTP 响应 502 Bad Gateway,message:An invalid response was received from the upstream server。从上游服务器收到无效响应。502 Bad Gateway 错误具体表示服务器收到来自入站服务器的无效响应。k…
-
在国内手机上安装 Google Play,进而安装 Bitcoin Wallet 的流程
1、由于一些应用仅存在于 Google Play 应用商店中,比如:Bitcoin Wallet,在国内的应用商店中不存在。因此,决定在手机上安装 Google Play 2、我的手机是:OnePlus 8,没有预装 Google Play。参考网址:https://ww…
-
Rancher 环境变量缺失(在容器中未生效)的排查分析
1、在 Rancher 中总计配置了 4 个环境变量。如图1 图1 2、查看容器的日志,有 2 个环境变量缺失。如图2 图2 3、导致的结果是,配置文件中的缺失的 2 个环境变量未被替换。如图3 图3 4、发现缺失的 2 个环境变量,其…
-
在 OpenResty 中请求 https 网址报错:unable to get local issuer certificate
1、在 OpenResty 中请求 https 网址报错:unable to get local issuer certificate。如图1 图1 { "code": 11003, "message": "Http请求SCMS积分接口调用失败:20: unable to get local iss…
-
在 Windows 10 下的 OpenResty ,报错:module ‘lib.redis’ not found: no field package.preload[‘lib.redis’]
1、运行 lua 程序,报错:500 Internal Server Error openresty/1.19.9.1。如图1 图1 2、查看 Nginx 日志文件,morefunresty.dev.chinamcloud.cn.error.log,module ‘lib.redis’ not found: no field p…
-
基于 Bootstrap File Input v4.3.2 上传文件时,新增 POST 参数的实现
1、Bootstrap File Input 是一款非常优秀的HTML5文件上传插件,支持文件预览、多选等一系列特性。基于 Bootstrap File Input v4.3.2 上传文件时,现有参数:upfile、file_id。如图1 图1 2、现在需要新增参数:type…
-
在 Windows 10 下的 OpenResty 的安装部署,同时支持运行 PHP、Lua 两种语言
1、网址:http://openresty.org/cn/download.html ,下载安装:64 位 Windows: openresty-1.19.9.1-win64.zip。 2、解压缩至目录:C:/openresty-1.19.9.1-win64 。如图1 图1 3、针对 Windows 版 OpenResty 的用法文…
-
在 K8s 中报错:Could not resolve host: group.cmc; Name or service not known
1、在 K8s 中 容器 api 中请求 容器 group 报错:Could not resolve host: group.cmc; Name or service not known。无法解析主机:group.cmc; 名称或服务未知。如图1 图1 2、在容器 api 中请求 group 容器中的静态…
-
被转义的 JSON 字符的格式化
1、一段 JSON 结构的且被转义的字符。如图1 图1 { "timestamp": 1631780119.542232, "url": "http://apimerge.chinamcloud.com?&com_id=1&tenantid=59b8833e28c267350c8c0fa5d890…
-
在 PHP 环境中报错:Notice: Unknown: file created in the system’s temporary directory in Unknown on line 0
1、在 PHP 环境中报错:Notice: Unknown: file created in the system’s temporary directory in Unknown on line 0。如图1 图1 <br /> <b>Notice</b>: Unknown: file created in the syst…