Giter Club home page Giter Club logo

Comments (13)

John60676 avatar John60676 commented on July 2, 2024 2

@ssddn 我提工单问他们,他们都不知道 aliyun-python-sdk-core-v3 这个依赖包的存在🤷‍♀️,不管了。我自己已经修复了个版本用。版本提交上去了,合不合并随他们吧。这个issue留着给后面的人翻看

from aliyun-openapi-python-sdk.

ssddn avatar ssddn commented on July 2, 2024 1

在endpoints.xml文件中如下节点

<Endpoint name="cn-hangzhou">
             <RegionIds><RegionId>cn-hangzhou</RegionId></RegionIds>
             <Products>

增加下面这行就能解决了。
<Product><ProductName>Dysmsapi</ProductName><DomainName>dysmsapi.aliyuncs.com</DomainName></Product>

from aliyun-openapi-python-sdk.

John60676 avatar John60676 commented on July 2, 2024

是否因为 endpoints.xml 32行中的 'DomainName' 有误?
<Product><ProductName>Sms</ProductName><DomainName>sms.aliyuncs.com</DomainName></Product>

from aliyun-openapi-python-sdk.

John60676 avatar John60676 commented on July 2, 2024

两天了都没人来处理一下?

from aliyun-openapi-python-sdk.

John60676 avatar John60676 commented on July 2, 2024

@ssddn 我只是好奇为啥提了好几天了都没人提交版本修复,而且我看了一下,这个问题很早前就有了。前几个月有个commit修复了,但是不知道为啥最近 Dysmsapi 这个节点又在endpoint 里面丢失了

from aliyun-openapi-python-sdk.

ssddn avatar ssddn commented on July 2, 2024

我在阿里云平台上提交工单了,他们答复说尽快解决,不知道什么时候能更新上去。

from aliyun-openapi-python-sdk.

gaort avatar gaort commented on July 2, 2024

@John60676 @ssddn
十分感谢您的建议,关于您提到的问题,短信服务在调用demo中包含一行添加endpoint的代码,具体在:
https://help.aliyun.com/document_detail/55359.html?spm=5176.8195934.507901.12.UvCFaW

另外,添加到endpoint也是可以解决这个问题的,十分感谢您的提交,我们会内部讨论后决定是否合并,再次感谢!

from aliyun-openapi-python-sdk.

nssprite avatar nssprite commented on July 2, 2024

使用最新版aliyunsdkcore 2.6.2,endpoint.xml缺少dysmsapi配置。
参考:https://steemit.com/btc/@seatre/python-api

from aliyun-openapi-python-sdk.

gaort avatar gaort commented on July 2, 2024

@nssprite 您好,endpoint.xml已经不再维护了
关于短信sdk出现cannotResolveEndpoint的问题,我们已经向相关团队反馈
建议您提交工单,我们会尽快推进这个问题的解决

from aliyun-openapi-python-sdk.

bunnyc1986 avatar bunnyc1986 commented on July 2, 2024

这个问题还是没有解决,导致我也踩到这个坑了。
现在resolve endpoint的原理是什么?难道这个问题很难修复吗?
如果问题没有解决,不应该把Issue关闭。@gaort

from aliyun-openapi-python-sdk.

jxyowen avatar jxyowen commented on July 2, 2024

您好,resolve endpoint 类似于dns解析,sdk在发出请求前, 会先通过endpoint解析服务,取得对应 产品及地区 的endpoint。 如果云产品没有在解析服务上做配置,就会出现cannotResolveEndpoint。 您工单得到的解决方案是手动设定 endpoint,是否解决了问题?

from aliyun-openapi-python-sdk.

bunnyc1986 avatar bunnyc1986 commented on July 2, 2024

工单上的解决方案是我自己看到这个Issue以及比较Demo以后得到的。
手动添加endpoint以后,已经可以正常使用。

from aliyun-openapi-python-sdk.

bunnyc1986 avatar bunnyc1986 commented on July 2, 2024

为什么短信服务不愿意在解析服务上做配置呢?

from aliyun-openapi-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.