aliyunmq / mq-http-php-sdk

Aliyun Message Queue(MQ) Http PHP SDK
MIT License
74 stars 34 forks source link

http topic和groupId名字过长会报错,tcp没这个问题 #8

Open cpj555 opened 3 years ago

cpj555 commented 3 years ago

Code: NotSupport Message: the length of GID(CID) and TOPIC is too long, total length(include instance) should not longer than 119, please change another topic or another cid RequestId : 605402BE384531236C9E1205 HostId

cpj555 commented 3 years ago

希望可以优化下机制,不然命名规则无法保持一致 request:{"method":"GET","url":"/topics/order_center_normal_topic/messages","option":{"query":{"consumer":"GID_order_center_status_change","numOfMessages":16,"tag":"order_submit||order_close","waitSeconds":30,"ns":"MQ_INST_1988459431884100_BXiRBXmi"},"http_errors":false,"headers":{"Date":"Fri, 19 Mar 2021 01:47:41 GMT","x-mq-version":"2015-06-06","Content-Type":"text/xml","Authorization":"MQ Io6rIgufYlRYxLRj:7oz9ww/IKD/BUuwkjvHZVbgzkEw="}}} response: {"statusCode":400,"responseBodyContent":"<?xml version=\"1.0\" ?>\n<Error xmlns=\"http://mq.aliyuncs.com/doc/v1\">\n NotSupport\n the length of GID(CID) and TOPIC is too long, total length(include instance) should not longer than 119, please change another topic or another cid\n 605402BE384531236C9E1205\n http://1988459431884100.mqrest.cn-qingdao-public.aliyuncs.com\n"}