This repository was archived by the owner on Nov 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
This repository was archived by the owner on Nov 27, 2018. It is now read-only.
XML instead of JSON reply #25
Copy link
Copy link
Open
Description
Hi,
Thanks for developing CMB and making it open source.
I just started playing with it and discovered that it is returning XML instead of JSON to my SNS requests (sent via the python aws library boto).
For example, BOTO sent out something like:
GET /?Action=GetTopicAttributes&ContentType=JSON&TopicArn=arn%3Acmb%3Acns%3Accp%3A392881562674%3Atest&Version=2010-03-31 HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 0\r\nHost: sns.us-east-1.amazonaws.com\r\nAuthorization: AWS4-HMAC-SHA256 Credential=NLHE68VKGI66AS6GNSMN/20140224/us-east-1/sns/aws4_request,SignedHeaders=host;x-amz-date,Signature=29e34b31276772feda3d65efb48ccc7a4f8db2033fa5fab2b48d00b73dce6f7e\r\nX-Amz-Date: 20140224T103234Z\r\nUser-Agent: Boto/2.25.0 Python/2.6.6 Linux/2.6.32-26-pve\r\n\r\n
CMB replied with some XML, like:
Content-Type: text/xml
Content-Length: 1745
Connection: keep-alive
Server: Jetty(8.1.10.v20130312)
<GetTopicAttributesResponse>
<GetTopicAttributesResult>
<Attributes>
<entry>
<key>EffectiveDeliveryPolicy</key>
etc.
AWS replied with some JSON, like:
x-amzn-RequestId: 4b90e267-710b-5eda-a2ec-a9e282776605
Content-Type: application/json
Content-Length: 1127
{"GetTopicAttributesResponse":{"GetTopicAttributesResult":{"Attributes":{"DisplayName":"","EffectiveDeliveryPolicy":"
etc.
As a result, boto worked ok with AWS but returned this error with CMB:
ERROR No JSON object could be decoded
I am already using the latest CMB on github with the boto fix (06baa74).
Any suggestion or insight into this problem much appreciated.
Kind regards,
Jane
Metadata
Metadata
Assignees
Labels
No labels