Comments (12)
我在升级公司项目时,对照官方mnsapi在openapi-sdk-php做了相关适配.
想问下是否有融合mns相关api的计划? 如无,我就自己把mns的request都补全了
from openapi-sdk-php.
补充一下 MNS官方文档中 https://help.aliyun.com/document_detail/35137.html
numOfMessages 也是写错的 应该是 NumOfMessages
from openapi-sdk-php.
- PHP Version:7.2
- Platform:mac
- Product:mns
- Product Version:1.2.4
- API: BatchReceiveMessage
hi
sdk中提供的mnsClient存在参数问题 导致无法正常获取mns队列消息我方在升级使用新版php-sdk, 出现无法拉取mns消息bug
阿里云官方工单反馈如下
工程师 60810 号 : 您好,已经为您核实,您的这个sdk不是消息服务mns官方提供的sdk,传的参数WaitSeconds 这个是非标准的,标准的应该是:waitseconds,还要请您知晓哈,官方提供的mns的sdk,您可以参考下
https://help.aliyun.com/document_detail/32381.html?spm=a2c4g.11186623.6.655.2b947f87MOpJpF
您使用这个sdk测试下,看是否还有500的情况呢?经查证问题出自
AlibabaCloud\Dybaseapi\MNS\Requests\BatchReceiveMessage;
line:86 88 两个参数错误请核实.
正在联系相关产品核实,请稍等。
from openapi-sdk-php.
我在升级公司项目时,对照官方mnsapi在openapi-sdk-php做了相关适配.
想问下是否有融合mns相关api的计划? 如无,我就自己把mns的request都补全了
已经修复完毕,请升级版本 composer update 到 V1.2.9
from openapi-sdk-php.
好的,感谢
from openapi-sdk-php.
修复的有问题
官方sdk中 BatchReceiveMessageRequest
public function generateQueryString()
{
$params = array("numOfMessages" => $this->numOfMessages);
if ($this->waitSeconds != NULL)
{
$params["waitseconds"] = $this->waitSeconds;
}
return http_build_query($params);
}
numOfMessages waitseconds
在调用时 numOfMessages 这样传递会报错 如下:
.MissingArgument: Required Integer parameter 'NumOfMessages' is not present RequestId: 5C9AEE57314545DD2833A136
- 所以正确的是 NumOfMessages
- 工单中客服肯定 waitseconds 参数是需要这样传 不知道内部是否有 waitSeconds的写法 这个无法通过接口报错来辨识(这个还需要请再跟后端开发确认下,因为这个会影响到我们在生产环境升级sdk后使用)
from openapi-sdk-php.
修复的有问题
官方sdk中 BatchReceiveMessageRequest
public function generateQueryString() { $params = array("numOfMessages" => $this->numOfMessages); if ($this->waitSeconds != NULL) { $params["waitseconds"] = $this->waitSeconds; } return http_build_query($params); }
numOfMessages waitseconds
在调用时 numOfMessages 这样传递会报错 如下:
.MissingArgument: Required Integer parameter 'NumOfMessages' is not present RequestId: 5C9AEE57314545DD2833A136
- 所以正确的是 NumOfMessages
- 工单中客服肯定 waitseconds 参数是需要这样传 不知道内部是否有 waitSeconds的写法 这个无法通过接口报错来辨识(这个还需要请再跟后端开发确认下,因为这个会影响到我们在生产环境升级sdk后使用)
请稍等,可否方便提供其他的联系方式? 邮箱,钉钉。
from openapi-sdk-php.
修复的有问题
官方sdk中 BatchReceiveMessageRequest
public function generateQueryString() { $params = array("numOfMessages" => $this->numOfMessages); if ($this->waitSeconds != NULL) { $params["waitseconds"] = $this->waitSeconds; } return http_build_query($params); }
numOfMessages waitseconds
在调用时 numOfMessages 这样传递会报错 如下:
.MissingArgument: Required Integer parameter 'NumOfMessages' is not present RequestId: 5C9AEE57314545DD2833A136
- 所以正确的是 NumOfMessages
- 工单中客服肯定 waitseconds 参数是需要这样传 不知道内部是否有 waitSeconds的写法 这个无法通过接口报错来辨识(这个还需要请再跟后端开发确认下,因为这个会影响到我们在生产环境升级sdk后使用)
建议您在工单中和API产品同学确认
from openapi-sdk-php.
同样面对这个问题.提示 MissingArgument: Required Integer parameter 'NumOfMessages' is not present RequestId: 5CA8A875454131D64449B6C4
你们处理问题都不测试的吗?这么久了还没修复好,而且issue被关闭
from openapi-sdk-php.
同样面对这个问题.提示 MissingArgument: Required Integer parameter 'NumOfMessages' is not present RequestId: 5CA8A875454131D64449B6C4
你们处理问题都不测试的吗?这么久了还没修复好,而且issue被关闭
您好,我们已经开始高优处理,请稍等。
from openapi-sdk-php.
同样面对这个问题.提示 MissingArgument: Required Integer parameter 'NumOfMessages' is not present RequestId: 5CA8A875454131D64449B6C4
你们处理问题都不测试的吗?这么久了还没修复好,而且issue被关闭
我们已经发布了 V1.3.4 解决此问题,请使用 composer update 更新到新版本。
from openapi-sdk-php.
修复的有问题
官方sdk中 BatchReceiveMessageRequest
public function generateQueryString() { $params = array("numOfMessages" => $this->numOfMessages); if ($this->waitSeconds != NULL) { $params["waitseconds"] = $this->waitSeconds; } return http_build_query($params); }
numOfMessages waitseconds
在调用时 numOfMessages 这样传递会报错 如下:
.MissingArgument: Required Integer parameter 'NumOfMessages' is not present RequestId: 5C9AEE57314545DD2833A136
- 所以正确的是 NumOfMessages
- 工单中客服肯定 waitseconds 参数是需要这样传 不知道内部是否有 waitSeconds的写法 这个无法通过接口报错来辨识(这个还需要请再跟后端开发确认下,因为这个会影响到我们在生产环境升级sdk后使用)
我们已经发布了 V1.3.4 解决此问题,请使用 composer update 更新到新版本。
from openapi-sdk-php.
Related Issues (20)
- describeFaceVerify接口地域选择cn-hongkong时提示:The request has failed due to a temporary failure of the server. HOT 1
- 阿里云 Composer 全量镜像链接不够详细 HOT 1
- Status code must be an integer value between 1xx and 5xx.
- demo 里面 vendor/autoload.php 这个到底是在 sdk 文件夹的哪个位置? HOT 1
- DTS API does not follow the shared region setting defined in DefaultClient
- 在PHP8环境中 MNS队列调用报告libxml_disable_entity_loader函数已被弃用
- 新版sdk示例如何让返回信息显示中文
- 希望能够兼容php8 HOT 1
- .....
- 你们的 API 响应规范这么玩的吗?驼峰也就算了,首字母还大写??? HOT 1
- ...... HOT 2
- SDK很多 很全 , 是否可以补充一下文档 HOT 2
- AlibabaCloud\Tea\Utils\Utils::isUnset(): Argument #1 ($value) cannot be passed by reference
- 各种PHP版本都装不上
- nlp调用一直返回 SignatureDoesNotMatch: Specified signature is not matched with our calculation
- 不支持php8.1 HOT 4
- When will it be compatible with php8?hurry up!!! HOT 3
- 什么时候集成最新的ICE的SDK.
- ROA Request invalid signature : resolveBody never add Content-MD5 if isset $this->options['body']
- 验证码 2.0 相关的代码还未更新
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-sdk-php.