遇见同样问题,升级了 GuzzleHttp,也不行
微信支付api,GuzzleHttp报错安装: composer require wechatpay/wechatpay Using version ^1.4 for wechatpay/wechatpay ./composer.json has been updated Running composer update wechatpay/wechatpay Loading composer repositories with package information Updating dependencies Lock file operations: 11 installs, 0 updates, 0 removals - Locking guzzlehttp/guzzle (7.4.1) - Locking guzzlehttp/promises (1.5.1) - Locking guzzlehttp/psr7 (2.1.0) - Locking guzzlehttp/uri-template (v1.0.1) - Locking psr/http-client (1.0.1) - Locking psr/http-factory (1.0.1) - Locking psr/http-message (1.0.1) - Locking ralouphie/getallheaders (3.0.3) - Locking symfony/deprecation-contracts (v2.5.0) - Locking symfony/polyfill-php80 (v1.25.0) - Locking wechatpay/wechatpay (1.4.3) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 11 installs, 0 updates, 0 removals - Installing guzzlehttp/promises (1.5.1): Extracting archive - Installing ralouphie/getallheaders (3.0.3): Extracting archive - Installing psr/http-message (1.0.1): Extracting archive - Installing psr/http-factory (1.0.1): Extracting archive - Installing guzzlehttp/psr7 (2.1.0): Extracting archive - Installing psr/http-client (1.0.1): Extracting archive - Installing symfony/deprecation-contracts (v2.5.0): Extracting archive - Installing symfony/polyfill-php80 (v1.25.0): Extracting archive - Installing guzzlehttp/uri-template (v1.0.1): Extracting archive - Installing guzzlehttp/guzzle (7.4.1): Extracting archive - Installing wechatpay/wechatpay (1.4.3): Extracting archive PHP版本:7.4.28 PHP代码: require '..../classes/vendor/autoload.php'; use WeChatPay\Builder; use WeChatPay\Crypto\Rsa; use WeChatPay\Util\PemUtil; use WeChatPay\Util\MediaUtil; ..... // 构造一个 APIv3 客户端实例 $instance = Builder::factory([ 'mchid' => $merchantId, 'serial' => $merchantCertificateSerial, 'privateKey' => $merchantPrivateKeyInstance, 'certs' => [ $platformCertificateSerial => $platformPublicKeyInstance, ], ]); // 发送请求 $resp = $instance->chain('v3/certificates')->get(); 运行结果: Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `GET https://api.mch.weixin.qq.com/v3/certificates` resulted in a `401 Unauthorized` response: {"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_ (truncated...) in .../classes/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 .../classes/vendor/guzzlehttp/guzzle/src/Middleware.php(69): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL) #1 .../classes/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 .../classes/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL) #3 .../classes/vendor/guzzlehttp/p in .../classes/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113
03-23红米手机,遇见过类似问题,暂未方案
部分安卓真机调用wx.getLocation接口报错,但不回调fail,怎么解决?有用户反应安卓手机打开小程序一直加载不出来,但不是所有手机都这样。 同事的手机也出现了一例这种情况,机型:Mi 10 Ultra,手机系统:14.0.2,微信版本号:8.0.45, 用真机调试之后发现,只要打开首页一调用wx.getLocation就会报: VM75:398 Error: ENOENT: no such file or directory, stat '/storage/emulated/0/Android/data/com.tencent.mm/MicroMsg/wxanewfiles/4a88bbaa6fcd2b8c1871b8214317bc06/privacy/scopeState.txt'; go __invokeHandler__ readFile worker? false [wxapplib]] backgroundfetch privacy fail {"errno":101,"errMsg":"private_getBackgroundFetchData:fail private_getBackgroundFetchData:fail:jsapi invalid request data"} error occurs:no such file or directory, access 'wxfile://usr/miniprogramLog/log2' [图片] 它这个错误也不走wx.getLocation的fail回调,因为是uniapp开发,我也在开发者工具里尝试直接改成微信原生的接口,还是报这个错误。 隐私协议都老早配置好了的 [图片] 请问这个要怎么解决?有没有人遇到过?
2024-12-18message:清除工具及手机授权数据失败 Error: extAppid 没有授权, [20241101 16:46:24][wxd14c57325b64c653],Error: extAppid 没有授权, [20241101 16:46:24][wxd14c57325b64c653] appid: wxa00df97291a1bd86 openid: o6zAJs6C79p-oQc9LEGhljurk4Q4 ideVersion: 1.06.2409140 osType: win32-x64 time: 2024-11-01 16:48:19
清除工具及手机授权数据失败?[图片]重启,重新登录都这样,这个是怎么回事?
2024-11-01腾讯的技术客服大部分是猪,问题都看不明白,文档有很烂,本来电话几句话能解释清楚的,非要拿弄个破论坛。
流量主代运营,商户扫码重新授权了,为什么掉分账接口,仍提醒商户未完成协议签署流程?流量主代运营,商户扫码重新授权了,为什么掉分账接口,仍提醒商户未完成协议签署流程?
2024-03-27official-account 开发调整环境怎么出来?想看下效果
official-account 线上环境冷热启动场景不触发,只有扫码才显示?[图片]这个组件官方系的扫码和冷热启动场景都可以触发显示关注公众号组件的,实际上却只有扫码的场景才可以,冷热启动不行的,有人知道怎么回事吗?
2024-03-27pc客户端的小程序, 确实打不开文件。
微信windows3.9.5使用wx.openDocument()无法打开PDF微信windows3.9.2可以打开pdf 文件 升级到 微信windows3.9.5 无法打开pdf 文件
2023-09-28遇见同样问题,pc版本微信打不开下载文件
PC端WX.openDocument打开文件失败,mac电脑或部分win电脑可以打开打开代码片段后,使用PC端真机调试,点击预览PDF,会出现wx.opendocument失败。如下图所示。 [图片] wx.downloadFile下载文件获取路径没有问题。wx.opendocument报错:openDocument: fail
2023-09-28第三方开放平台的过期了,清空需要开放平台的token。现在死循环了。
开放平台的token怎么清空?开放平台token调用次数过期?如何清空。清空api的调用quota?开放平台的token怎么清空?开放平台token调用次数过期?如何清空。清空api的调用quota?
2023-03-1745009
小程序订阅消息报错errCode: 40037?{errCode: 40037, errMsg: "openapi.subscribeMessage.send:fail invalid template_id rid: 6385571a-56c8ddc2-12fb29d2"}__proto__我用的是云函数的代码这样 [图片] [图片]
2023-03-17wxa00df97291a1bd86,还是这个问题,为什么审核人员都不培训呢?
医院工会小程序,不能含有医院关键词的bug我们是医院工会小程序,审核人员驳回了,要求提交资质证明,审核人员对目前工会的组织理解还是有误,请尽快处理。 1:服务类目"体育-在线健身_"与你提交代码审核时设置的功能页面内容不一致: (1):你好,你的小程序名称含关键词“医院”,涉及资质服务,请补充医疗服务-医疗机构类目或删除名称中命中的关键词“医院”。
2022-08-27