china-divisions icon indicating copy to clipboard operation
china-divisions copied to clipboard

search()不能使用.

Open xingkoo opened this issue 4 years ago • 4 comments

请问 seach() 方法 地址规范查询 使用时报错,

Exception 'ChinaDivisions\Exceptions\ResponseException' with message 'HSF 服务地址未找到:ReceiveServiceInvoker~serviceName=CNDZK.ADDRESS.QUERY.123,appName=cndzk_address_query,version=1.0.0,异常信息=HSF 服务地址未找到 traceId:0b521c8b15864945343516403e2d21'

我在 https://global.link.cainiao.com/ 注册了账号,新增了应用, 尝试修改 search的参数为:

$request = $this->client->build(
            'CNDZK_ADDRESS_QUERY',
            '********key************',
            [
                'address' => $fullAddress,
                'limit'   => intval($limit),
            ],
            '*************cp code******'
        );

后,直接报错

Exception 'ChinaDivisions\Exceptions\ResponseException' with message '非法的XML/JSON:request content from invoker is not invalid json. traceId:0b51153b15864938084385919e0587'

是我哪个地方操作错误了吗?

xingkoo avatar Apr 10 '20 04:04 xingkoo

不好意思,可能是由于项目依赖的 API 有所变动。

wi1dcard avatar Apr 21 '20 07:04 wi1dcard

这个有什么解决方式吗? 菜鸟官网查询了很久没有找到相关资料。尝试着使用后台普通用户的身份,也没有任何地方可以获取到数据的。 作者辛苦了!

xingkoo avatar Apr 26 '20 04:04 xingkoo

目前我已经脱离相关工作蛮久了,很抱歉暂时提供不了什么帮助哈。

wi1dcard avatar Apr 26 '20 06:04 wi1dcard

好滴,这个库给了我很大帮助。等以后我找到解决方案后可以试着帮忙维护一下。

Wi1dcard [email protected] 于2020年4月26日周日 下午2:48写道:

目前我已经脱离相关工作蛮久了,很抱歉暂时提供不了什么帮助哈。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wi1dcard/china-divisions/issues/7#issuecomment-619495104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWM6A4OFXJFTGSQ7DWMPRDROPKMZANCNFSM4MFG6A2Q .

xingkoo avatar Apr 26 '20 07:04 xingkoo