File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,24 @@ Example JSON request body:
82
82
}
83
83
```
84
84
85
+ ### Monitoring, Authorization, and CORS
86
+
87
+ The server (Cloudant (Classic) <= 8169) incorrectly processes gzip compressed request bodies for the following endpoints:
88
+ | Endpoint | HTTP operation |
89
+ | ---------------------------------------| ----------------|
90
+ | ` /_api/v2/user/activity_tracker/events ` | ` POST ` |
91
+ | ` /_api/v2/user/capacity/throughput ` | ` PUT ` |
92
+ | ` /_api/v2/api_keys ` | ` POST ` |
93
+ | ` /_api/v2/db/{db}/_security ` | ` PUT ` |
94
+ | ` /_api/v2/user/config/cors ` | ` PUT ` |
95
+
96
+ The workaround is to [ disable request body compression] ( #disabling-request-body-compression ) .
97
+
98
+ ### Replication
99
+
100
+ The server (CouchDB versions <= 3.1.1; Cloudant (Classic) <= 8169) incorrectly processes gzip compressed request bodies for ` _replicate ` endpoint.
101
+ The workaround is to [ disable request body compression] ( #disabling-request-body-compression ) .
102
+
85
103
### Cloudant on Transaction Engine
86
104
87
105
Whilst most SDK methods will work with _ Cloudant on Transaction Engine_ there are some limitations.
Original file line number Diff line number Diff line change @@ -406,6 +406,12 @@ try:
406
406
doc_id = example_doc_id
407
407
).get_result()
408
408
409
+ # Note: for response byte stream use:
410
+ # document_as_byte_stream = client.get_document_as_stream(
411
+ # db=example_db_name,
412
+ # doc_id=example_doc_id
413
+ # ).get_result()
414
+
409
415
# Add Bob Smith's address to the document
410
416
document[" address" ] = " 19 Front Street, Darlington, DL5 1TY"
411
417
@@ -419,6 +425,12 @@ try:
419
425
document = document
420
426
).get_result()
421
427
428
+ # Note: for request byte stream use:
429
+ # update_document_response = client.post_document(
430
+ # db=example_db_name,
431
+ # document=document_as_byte_stream
432
+ # ).get_result()
433
+
422
434
# Keep track with the revision number of the document object:
423
435
document[" _rev" ] = update_document_response[" rev" ]
424
436
print (f ' You have updated the document: \n ' +
You can’t perform that action at this time.
0 commit comments