Skip to content

Commit 2a5e6b3

Browse files
Update generated source code
Generated SDK source code using: - Generator version 3.30.0 - Specification version 1.0.0-dev0.0.36 - Automation (cloudant-sdks) version 5d4cf0c
1 parent 7a440c7 commit 2a5e6b3

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

KNOWN_ISSUES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@ Example JSON request body:
8282
}
8383
```
8484

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+
85103
### Cloudant on Transaction Engine
86104

87105
Whilst most SDK methods will work with _Cloudant on Transaction Engine_ there are some limitations.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ try:
406406
doc_id=example_doc_id
407407
).get_result()
408408

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+
409415
# Add Bob Smith's address to the document
410416
document["address"] = "19 Front Street, Darlington, DL5 1TY"
411417

@@ -419,6 +425,12 @@ try:
419425
document=document
420426
).get_result()
421427

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+
422434
# Keep track with the revision number of the document object:
423435
document["_rev"] = update_document_response["rev"]
424436
print(f'You have updated the document:\n' +

0 commit comments

Comments
 (0)