Skip to content

Conversation

@brianbaquiran
Copy link

Querying a simple default feature toggle fails with KeyError: 'parameters'.

This happens because the default activation strategy does not have a parameter attached to it, e.g. the payload from the unleash server looks like this:

{'version': 1, 'features': [
    {'name': 'toggle1', 'description': 'initial feature toggle', 'enabled': True,
     'strategies': [{'name': 'default'}], 'createdAt': '2018-09-11T06:34:09.973Z'}]}

This fixes the issue.

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

Successfully merging this pull request may close these issues.

1 participant