-
Notifications
You must be signed in to change notification settings - Fork 158
TypeError: expected string or bytes-like object #501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
api: storage
Issues related to the googleapis/python-storage API.
Comments
python-storage/google/cloud/storage/blob.py Lines 138 to 141 in 6486010
dangling comma at the end of the line |
same thing with python-storage/google/cloud/storage/blob.py Lines 129 to 134 in 6486010
|
rjw57
added a commit
to rjw57/python-storage
that referenced
this issue
Jul 15, 2021
The _DOWNLOAD_AS_STRING_DEPRECATED constant includes a dangling comma which makes it a tuple and not a string. This causes a TypeError as reported in googleapis#501. Closes googleapis#501
rjw57
added a commit
to rjw57/python-storage
that referenced
this issue
Jul 15, 2021
The _DOWNLOAD_AS_STRING_DEPRECATED, _COMPOSE_IF_GENERATION_LIST_DEPRECATED and _COMPOSE_IF_GENERATION_LIST_AND_IF_SOURCE_GENERATION_ERROR constants include a dangling comma which make them tuples and not strings. This causes a TypeError as reported in googleapis#501. Closes googleapis#501
cojenco
pushed a commit
to cojenco/python-storage
that referenced
this issue
Oct 13, 2021
) The _DOWNLOAD_AS_STRING_DEPRECATED constant includes a dangling comma which makes it a tuple and not a string. This causes a TypeError as reported in googleapis#501. Fixes googleapis#501
cojenco
pushed a commit
to cojenco/python-storage
that referenced
this issue
Oct 13, 2021
) The _DOWNLOAD_AS_STRING_DEPRECATED constant includes a dangling comma which makes it a tuple and not a string. This causes a TypeError as reported in googleapis#501. Fixes googleapis#501
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
google-cloud-storage-1.41.0
python-storage/google/cloud/storage/blob.py
Line 1520 in 6486010
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
)
The text was updated successfully, but these errors were encountered: