We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug It is reported that for get_entity_list if option="keyValues" is used, no entities can be returned
get_entity_list
To Reproduce
from filip.clients.ngsi_ld.cb import ContextBrokerLDClient from filip.models import FiwareLDHeader from filip.models.ngsi_ld.context import ContextLDEntity, ActionTypeLD attr = {"testtemperature": {"type": "Property", "value": 20.0}} entity_list = [ContextLDEntity( id=f"urn:ngsi-ld:my:id{i}", type="MyType", **attr) for i in range(10)] fiware_header = FiwareLDHeader(ngsild_tenant="test") client = ContextBrokerLDClient( fiware_header=fiware_header, url="http://134.130.49.13:1027" ) client.entity_batch_operation(entities=entity_list, action_type=ActionTypeLD.UPSERT) entities_normal = client.get_entity_list() entities_key_values = client.get_entity_list(options="keyValues") entities_sys_attrs = client.get_entity_list(options="sysAttrs") print("\nentities_normal", entities_normal) print("\nentities_key_values", entities_key_values) print("\nentities_sys_attrs", entities_sys_attrs) client.entity_batch_operation(entities=entity_list, action_type=ActionTypeLD.DELETE)
entities_key_values is reported to be None sometimes. However, I cannot reproduce in my environment.
entities_key_values
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
It is reported that for
get_entity_list
if option="keyValues" is used, no entities can be returnedTo Reproduce
entities_key_values
is reported to be None sometimes. However, I cannot reproduce in my environment.The text was updated successfully, but these errors were encountered: