-
Notifications
You must be signed in to change notification settings - Fork 14
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
Function Talents: Incorrect TTL #47
Comments
Which version of the SDK and the platform are you using? This is due to a setting in the JSON schema, which is used to validate incoming discovery responses. This was fixed quite a long time ago. Check the ttl property /resources/feature.schema.json it should read: This means: All values must be over 1000, with the exception of 0, which indicates a volatile feature. |
I had tried earlier with the git commit 6dd73b9. Interestingly, function talents in javascript work fine. The problem exists only in python SDK for me. P.S.: How do I find the platform version? Unfortunately, the version is not mentioned in the log output. |
The resources/feature.schema.json shows the ttl property as follows:
|
Is the TTL set to 0 in the Python SDK. Here in code. I changed it to 1000 and then it works. |
Your feature.schema.json seems to be correct. We have to treat function inputs and outputs as volatile features, which are not stored within an instance. Otherwise rulesets may evaluate wrong, if these values remain present. |
The platform version can be retrieved from the package.json file |
@nayakned I just tested the function example with current develop branch 41ac311. I can not see the error. only some warning there:
something goes wrong, right? |
found out with @nayakned that my issues is because of using using |
This problem looks to have been resolved in commit 45dfb0e. |
The Function Talents in Python SDK are not working since the last set of pull requests.
The TTL of the talent being registered is apparently 0 and the ConfigManager gives out an error.
This issue can be reproduced on the develop commit 6dd73b9
How to reproduce:
This throws an error in the talent.
The text was updated successfully, but these errors were encountered: