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

Error on batch.commit() after upgrading python to 3.11 and google-cloud-logging to 3.5 (from 3.0). #725

Closed

Description

@ayyoubelamrani4

Environment details

  • Python version: 3.11.1
  • google-cloud-logging version: 3.5.0

Steps to reproduce

Started happening on production after doing some upgrades, among other things:

  • upgrading python to 3.11.1 from 3.10
  • upgrading google-cloud-logging from 3.0.0 to 3.5.0

Stack trace

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/google/cloud/logging_v2/handlers/transports/background_thread.py", line 115, in _safely_commit_batch
    batch.commit()
  File "/usr/local/lib/python3.11/site-packages/google/cloud/logging_v2/logger.py", line 474, in commit
    raise e
  File "/usr/local/lib/python3.11/site-packages/google/cloud/logging_v2/logger.py", line 467, in commit
    client.logging_api.write_entries(
  File "/usr/local/lib/python3.11/site-packages/google/cloud/logging_v2/_gapic.py", line 163, in write_entries
    self._gapic_api.write_log_entries(request=request)
  File "/usr/local/lib/python3.11/site-packages/google/cloud/logging_v2/services/logging_service_v2/client.py", line 726, in write_log_entries
    response = rpc(

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on May 26, 2023
  2. gkevinzheng commented on Oct 24, 2023

    @gkevinzheng
    Contributor

    Could you paste in the code that generates this stack trace?

  3. added
    priority: p3Desirable enhancement or fix. May not be included in next release.
    and removed
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/python-logging API.priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions