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

tls_configurations error on upload_tls_bulk_cert() #89

Open
mechanicalgirl opened this issue Jun 1, 2023 · 0 comments
Open

tls_configurations error on upload_tls_bulk_cert() #89

mechanicalgirl opened this issue Jun 1, 2023 · 0 comments

Comments

@mechanicalgirl
Copy link

Version

fastly==1.3.0

What happened

I'm attempting to upload a TLS cert with the upload_tls_bulk_cert() method.

When I structure the request as per this example:

https://developer.fastly.com/reference/api/tls/platform/#upload-tls-bulk-cert

I get this error:

AttributeError: 'dict' object has no attribute 'tls_configurations'

The error looks like it's originating from the model_utils - I've got a stacktrace here:

https://gist.github.com/mechanicalgirl/9421a604b989b3ebb65aa3b44092b5bf

I've also tried structuring the request as per these docs:

https://github.com/fastly/fastly-py/blob/main/docs/TlsBulkCertificatesApi.md#upload_tls_bulk_cert

Where the error returned is this:

Exception when calling TlsBulkCertificatesApi->upload_tls_bulk_cert: (400)
Reason: Bad Request
HTTP response body: {"errors":[{"title":"Missing required attribute","detail":"param is missing or the value is empty: tls_configuration_ids"}]}

(My apologies, I did not save a stacktrace from this one.)

I've been able to get this working with a workaround that uses the request library and hits the api.fastly.com/tls/bulk/certificates endpoint directly.

I started with a Fastly support request - one of their engineers directed me to submit an issue here. Their ticket is https://support.fastly.com/hc/en-us/requests/610399 and may provide more detail. (There are some of my code examples in that ticket, although I don't think they'll be helpful as they mirror what's in your docs exactly, aside from the specific values being passed.)

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