You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few references to client.project_id, but client does not have a field project_id, it has a field project:
.venv/lib/python3.12/site-packages/google/cloud/logging_v2/logger.py", line 79, in __init__
resource = detect_resource(client.project_id)
^^^^^^^^^^^^^^^^^
AttributeError: 'Client' object has no attribute 'project_id'. Did you mean: 'project'?
Changing these references in site-packages fixed the issue, but until that is fixed in the source, this package is broken for retrieving log entries via the SDK.
The text was updated successfully, but these errors were encountered:
Could I get a code sample of what you're trying to do and what version of the logging library you're using? I just looked at the code for google/cloud/logging_v2/logger.py and it has no mention of project_id:
There are a few references to
client.project_id
, but client does not have a fieldproject_id
, it has a fieldproject
:Changing these references in
site-packages
fixed the issue, but until that is fixed in the source, this package is broken for retrieving log entries via the SDK.The text was updated successfully, but these errors were encountered: