GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Saving large values to indexed properties raises _Rendezvous exception · Issue #2422 · googleapis/google-cloud-python

Saving large values to indexed properties raises _Rendezvous exception #2422

New issue
Copy link
New issue
Copy link
Closed
Closed
Saving large values to indexed properties raises _Rendezvous exception#2422
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.

Description

@Bogdanp
Bogdanp
opened on Sep 26, 2016
Issue body actions

Given this code:

from google.cloud import datastore
from google.cloud.datastore import Entity

client = datastore.Client()
with client.transaction() as xact:
    e = Entity(client.key("Test", "123"))
    e.update({"x": "a" * 1500000})
    xact.put(e)

version 0.19 of this library raises the following exception on .put:

Traceback (most recent call last):
  File "test.py", line 8, in <module>
    xact.put(e)
  File "/Users/bogdan/.virtualenvs/bread/lib/python2.7/site-packages/google/cloud/datastore/batch.py", line 302, in __exit__
    self.commit()
  File "/Users/bogdan/.virtualenvs/bread/lib/python2.7/site-packages/google/cloud/datastore/transaction.py", line 167, in commit
    super(Transaction, self).commit()
  File "/Users/bogdan/.virtualenvs/bread/lib/python2.7/site-packages/google/cloud/datastore/batch.py", line 274, in commit
    self._commit()
  File "/Users/bogdan/.virtualenvs/bread/lib/python2.7/site-packages/google/cloud/datastore/batch.py", line 251, in _commit
    self.project, self._commit_request, self._id)
  File "/Users/bogdan/.virtualenvs/bread/lib/python2.7/site-packages/google/cloud/datastore/connection.py", line 584, in commit
    response = self._datastore_api.commit(project, request)
  File "/Users/bogdan/.virtualenvs/bread/lib/python2.7/site-packages/google/cloud/datastore/connection.py", line 314, in commit
    return self._stub.Commit(request_pb)
  File "/Users/bogdan/.virtualenvs/bread/lib/python2.7/site-packages/grpc/_channel.py", line 481, in __call__
    return _end_unary_response_blocking(state, False, deadline)
  File "/Users/bogdan/.virtualenvs/bread/lib/python2.7/site-packages/grpc/_channel.py", line 432, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, The value of property "x" is longer than 1048487 bytes.)>

Previously, this used to raise gcloud.exceptions.BadRequest. It seems like this exception should be caught by the library and a more appropriate one should be raised in its stead.

EDIT: It turns out the following snippet has the same issue so this is not transaction specific:

from google.cloud import datastore
from google.cloud.datastore import Entity

client = datastore.Client()
e = Entity(client.key("Test", "123"))
e.update({"x": "a" * 1500000})
client.put(e)

EDIT 2: This does not work either, raising the same exception:

from google.cloud import datastore
from google.cloud.datastore import Entity

client = datastore.Client()
e = Entity(client.key("Test", "123"), exclude_from_indexes=("x",))
e.update({"x": "a" * 1500000})
client.put(e)

Activity

  1. Bogdanp
    changed the title [-]Saving large values to indexed properties inside transactions raises _Rendezvous exception[/-] [+]Saving large values to indexed properties raises _Rendezvous exception[/+] on Sep 26, 2016
  2. dhermes
    self-assigned this
    on Sep 26, 2016
  3. dhermes
    added
    api: datastoreIssues related to the Datastore API.
    on Sep 26, 2016
  4. dhermes commented on Sep 26, 2016

    @dhermes
    dhermes
    on Sep 26, 2016
    Contributor
    More actions

    @Bogdanp Thanks for the heads up. We currently just have an ad-hoc translation for such errors, so it's kind of a "wait and see".

  5. dhermes
    closed this as completedin #2423on Sep 26, 2016
  6. theacodes
    unassigned
    dhermes
    on Sep 28, 2018
  7. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  8. parthea
    added a commit that references this issue on Nov 24, 2025

    chore(deps): update dependency protobuf to v6.31.1 [security] (#2422)

    d6687cd
  9. parthea
    added 2 commits that reference this issue on Apr 1, 2026

    feat: add bigquery.ml.generate_embedding function (#2422)

    204d865

    chore: librarian release pull request:20260202T232430Z (#2428)

    a9a935f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.