Uh oh!
There was an error while loading. Please reload this page.
Switching datastore cursors to URLsafe base64 encoding. - #1180
Conversation
tseaver
commented
Oct 14, 2015
Given that our code only sends the cursor as a member of a protobuf passed as the body of a @jonparrott Were you able to reproduce GoogleCloudPlatform/getting-started-python#8 before this patch, and then have it not fail with the patch? |
dhermes
commented
Oct 14, 2015
For users creating URLs to page through search results with the cursors
The backend uses bytes. The only reason we encode bytes as base64 is for our end-users and we decode it when bringing it back in to a protobuf (e.g. if the user gets a base64 encoded cursor from a |
theacodes
commented
Oct 14, 2015
Inside of deflist():
cursor=request.params.get('cursor', None)
query=ds.query(kind='Book', order=['title'])
it=query.fetch(limit=limit, start_cursor=cursor)
entities, more_results, cursor=it.next_page()
return"Next page: {}".format(url_for('list', cursor=cursor))(abridged) Returns something like: which fails due to the |
Switching datastore cursors to URLsafe base64 encoding.
theacodes
commented
Oct 14, 2015
Thanks, @tseaver. I'll be on the lookout for the next release so I can update getting-started-python. |
* feat: Allow jobs to be run in a different project * Update test_sqlalchemy_bigquery_remote.py --------- Co-authored-by: Lingqing Gan <lingqing.gan@gmail.com>
Source-Link: googleapis/synthtool@e3a1277 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:452901c74a22f9b9a3bd02bce780b8e8805c97270d424684bff809ce5be8c2a2 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Fixesgetting-started-python#8