-
Notifications
You must be signed in to change notification settings - Fork 55
bug: EntityGroupId model does not fit api response #70
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
Comments
Hi @JuliusHarald, what version of the rest client and ThingsBoard you are using? |
Hi @samson0v I am using Version 1.4 |
Hi @JuliusHarald , Please try to import EntityGroupId from tb_rest_client.models.models_pe like |
Hi @imbeacon , I do that, my code is something like this:
and the |
@JuliusHarald It looks like something wrong in the rest client with deserialisation of the response, we will investigate and fix it. |
@JuliusHarald Please try to use the version from the master branch. |
Yes, it is better, I get a result back with the group information. Full Output of one group: |
Hi,
while working with
RestClientPE
I used the methodget_entity_groups_by_type("DEVICE")
, as a result I received a list with this:AttributeError("module 'tb_rest_client.models.models_ce' has no attribute 'EntityGroupId'")
When I started to look into it with the debugger I discovered, that the error happens in
api_client.py
in the methoddef __deserialize(self, data, klass):
.My guess is that the API send back this response:
but in the entity_group_id model there is no field
entityType
onlyid
, so this does not fit and provoke the errorThe text was updated successfully, but these errors were encountered: