-
Notifications
You must be signed in to change notification settings - Fork 60
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
EnabledProductsApi TypeError #100
Comments
Please try to reproduce this with version 5.7.0 or later; if it's still an issue we'll try to get it resolved. |
Hey @kpfleming, I can confirm this issue still exists. The enabled-product APIs return an object with a key named This is an example response from the API as per the documentation {
"product": {
"id": "product-id",
"object": "product"
},
"service": {
"id": "4nWURjwmQjbMB5OefSM75i",
"object": "service"
},
"_links": {
"self": "https://api.fastly.com/enabled-products/v1/product-id/services/4nWURjwmQjbMB5OefSM75i",
"service": "https://api.fastly.com/service/4nWURjwmQjbMB5OefSM75i"
}
} The return fn(_self, *args, **kwargs) # kwargs contains _self='...' which causes the I hope explained the issue clearly 😄 I don't mind opening a PR to fix this. |
Thanks for finding the issue! We can't accept a PR directly against this repo as the code here is produced by a generator (in a private repository), but we can take these details and produce a fix for the generator. |
@kpfleming Happy to help! |
Version
Lib version:
5.2.0
.What happened
I tried to use Enable Product API but it is failing on type error when using multiple methods on instance class of
EnabledProductsApi
:The above error is raised also for python example code from the Fastly documentation.
The text was updated successfully, but these errors were encountered: