Skip to content

Commit 936f51e

Browse files
committed
decode content correctly and update error msg for invoke sync
1 parent 89ddd7e commit 936f51e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ async def create_and_replace_document_item(client: Client):
305305
)
306306
# [developer-docs.sdk.python.read-document-item]-end
307307

308-
print(str(content))
308+
print(content.decode())
309309

310310
await client.items.delete(replaced_item.vault_id, replaced_item.id)
311311

src/onepassword/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _invoke_sync(invoke_config):
4545
serialized_config = json.dumps(invoke_config)
4646
if len(serialized_config.encode()) > MESSAGE_LIMIT:
4747
raise ValueError(
48-
f"Message size exceeds the limit of {MESSAGE_LIMIT} bytes.")
48+
f"message size exceeds the limit of {MESSAGE_LIMIT} bytes, please contact 1Password at [email protected] or https://developer.1password.com/joinslack if you need help.")
4949
try:
5050
return core.invoke_sync(serialized_config)
5151
except Exception as e:

0 commit comments

Comments
 (0)