Skip to content

ModuleNotFoundError when attempting to create a GCS logging endpoint #97

@AmandaHassoun

Description

@AmandaHassoun

Version

Please provide the version of fastly that you're using.

4.2.1

What happened

When attempting to run api_instance.create_log_gcs(service_id, version_id, etc..), I get the following error:

venv/lib/python3.10/site-packages/fastly/model/logging_gcs_response.py", line 38, in lazy_import
    from fastly.model.str_none_type import StrNoneType
ModuleNotFoundError: No module named 'fastly.model.str_none_type'

Please describe what you did, what you expected to happen, and what happened instead.

What I did: Attempted to create a GCS logging endpoint using create_log_gcs with compression_codec set to None since I have gzip set to 3 and the docs specifically state "Specifying both compression_codec and gzip_level in the same API request will result in an error. (optional)".

Then, I set compression_codec to an empty string since it's not nullable according to the README and the API returned the same error as above^.

So I'm stuck..

What I expected to happen: I expected the GCS logging endpoint to be created 🪄

What happened: I get the following error

venv/lib/python3.10/site-packages/fastly/model/logging_gcs_response.py", line 38, in lazy_import
    from fastly.model.str_none_type import StrNoneType
ModuleNotFoundError: No module named 'fastly.model.str_none_type'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions