-
Notifications
You must be signed in to change notification settings - Fork 1
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
Template and device creation problem #34
Comments
Hello @flaviops Thank you for trying out dojot! Those in particular seem to be related to a recent problem we had with one of our dependencies being updated (marshmallow), thus breaking our usage of their API. Those issues should have been fixed by #35. Apart from that, I see we might have a version mismatch problem as well. The payload you attached for the device creation request follows this service's old API (0.1.0). If you are to use the current version (that is, the one currently tracked master branch of this repo, which will become 0.2.0 sometime in march), you'll notice that the schema has changed quite a bit. For this new API, I'd ask you to have a look at our new documentation. |
Thanks for the reply @mmagr. The creation of templates is now working fine but I'm having another problem with device creation now, the error follows:
Now I'm trying to create the device via http://localhost:8000/#/device/new, so the API used should be just fine. Thanks. |
🤔 it seems one of dojot's services is not running (or at least) ready as it should when you issued the call to create the device. Could you please copy (or attach) the logs for To get them: docker-compose logs -t --no-color data-broker > data-broker.log |
This is what I got in the log:
|
Apparently the broker failed to start (zookeeper/kafka was not yet ready perhaps?). docker-compose restart data-broker device-manager persister iotagent |
I followed your instructions but unfortunately no changes to the problem. It seems to be related with the data broker though:
|
While experimenting with the platform I encountered some problems with the creation of devices and with creation and listing of templates. I still don't know if I'm doing something wrong while configuring the Dojot plataform or something alike.
I used the following command to create the device:
This is the reply from the Device-Manager:
By looking with the docker-composer I got the following error:
Creating or listing templates also gives an error, giving the same error message to a POST, but with the following output on docker-composer:
GET:
Reply:
Docker-Composer output:
The text was updated successfully, but these errors were encountered: