Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

TypeError: expected string or bytes-like object #501

Description

@AntonLazarchik

google-cloud-storage-1.41.0

Traceback (most recent call last):
File "", line 40, in
GoogleStorage().download_blob_as_string(uri='')
File "", line 23, in download_blob_as_string
return blob.download_as_string(retry=custom_retry)
File "\venv\lib\site-packages\google\cloud\storage\blob.py", line 1520, in download_as_string
warnings.warn(
TypeError: expected string or bytes-like object

print(type(_DOWNLOAD_AS_STRING_DEPRECATED))
warnings.warn(
_DOWNLOAD_AS_STRING_DEPRECATED, PendingDeprecationWarning, stacklevel=2
)
image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the googleapis/python-storage API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions