Skip to content
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

ModuleNotFoundError when attempting to create a GCS logging endpoint #97

Open
AmandaHassoun opened this issue Nov 1, 2023 · 0 comments

Comments

@AmandaHassoun
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant