Skip to content
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

Version 14 breaks with open-balena #920

Closed
bartversluijs opened this issue Jun 26, 2020 · 2 comments
Closed

Version 14 breaks with open-balena #920

bartversluijs opened this issue Jun 26, 2020 · 2 comments

Comments

@bartversluijs
Copy link

When using balena-sdk 14.0.1, it breaks with open-balena. A new version of open-balena will probably be launched in the next couple of weeks. But it's worth mentioning that the SDK breaks at this moment.

Expected Behavior

Getting a device with balena.models.device.get should return the device when the UUID is given.

Actual Behavior

Crashes with a 404 on endpoint /v6/devices

Steps to Reproduce the Problem

  1. Start open-balena instance
  2. Set balena-sdk to that open-balena instance
  3. Use function balena.models.device.get
  4. Results in crash

Specifications

  • SDK version: 14.0.1
  • Browser: Insomnia
  • Node version: v14.3.0
  • Npm version: 6.14.5
  • OS: macOS 10.15.4

References

@thgreasi
Copy link
Member

Hi @bartversluijs ,

It's true that the at this point the currently latest version of the open-balena-api doesn't offer the /v6 model endpoint, and as a result the balena-sdk v14 can't work with it.
We recently did quite a big change in our balenaCloud API /v6 model and we are actively working on also making part of the next open-balena-api version.

At the moment I can only suggest you to stick with the v13 major release of the balena-sdk.
I've opened an open-balena-api issue about this, so that you can track progress:
balena-io/open-balena-api#388

We will let you know once the new open-balena-api version gets released.

Kind regards,
Thodoris

thgreasi added a commit to balena-io/balena-cli that referenced this issue Jul 9, 2020
Depends on open-balena adding the mac_address &
the overall_status device fields, but the latest cli
version is probably already not working, since some
of its dependencies already use the v14 SDK which
needs the v6 model, that the open-balena-api doesn't
have yet either.

Change-type: minor
See: https://www.flowdock.com/app/rulemotion/i-cli/threads/SaSXFlJEv-dpk9uUngWY225zv2D
See: balena-io/open-balena-api#388
See: balena-io/open-balena-api#338
See: balena-io/balena-sdk#920
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
thgreasi added a commit to balena-io/balena-cli that referenced this issue Jul 9, 2020
Depends on open-balena adding the mac_address &
the overall_status device fields, but the latest cli
version is probably already not working, since some
of its dependencies already use the v14 SDK which
needs the v6 model, that the open-balena-api doesn't
have yet either.

Change-type: minor
See: https://www.flowdock.com/app/rulemotion/i-cli/threads/SaSXFlJEv-dpk9uUngWY225zv2D
See: balena-io/open-balena-api#388
See: balena-io/open-balena-api#338
See: balena-io/balena-sdk#920
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
thgreasi added a commit to balena-io/balena-cli that referenced this issue Jul 9, 2020
Depends on open-balena adding the mac_address &
the overall_status device fields, but the latest cli
version is probably already not working, since some
of its dependencies already use the v14 SDK which
needs the v6 model, that the open-balena-api doesn't
have yet either.

Change-type: minor
See: https://www.flowdock.com/app/rulemotion/i-cli/threads/SaSXFlJEv-dpk9uUngWY225zv2D
See: balena-io/open-balena-api#388
See: balena-io/open-balena-api#338
See: balena-io/balena-sdk#920
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>

sq

Resolves: #
Change-type:
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
thgreasi added a commit to balena-io/balena-cli that referenced this issue Jul 9, 2020
Depends on open-balena adding the mac_address &
the overall_status device fields, but the latest cli
version is probably already not working, since some
of its dependencies already use the v14 SDK which
needs the v6 model, that the open-balena-api doesn't
have yet either.

Change-type: minor
See: https://www.flowdock.com/app/rulemotion/i-cli/threads/SaSXFlJEv-dpk9uUngWY225zv2D
See: balena-io/open-balena-api#388
See: balena-io/open-balena-api#338
See: balena-io/balena-sdk#920
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
balena-ci pushed a commit to balena-io/balena-cli that referenced this issue Jul 9, 2020
Depends on open-balena adding the mac_address &
the overall_status device fields, but the latest cli
version is probably already not working, since some
of its dependencies already use the v14 SDK which
needs the v6 model, that the open-balena-api doesn't
have yet either.

Change-type: minor
See: https://www.flowdock.com/app/rulemotion/i-cli/threads/SaSXFlJEv-dpk9uUngWY225zv2D
See: balena-io/open-balena-api#388
See: balena-io/open-balena-api#338
See: balena-io/balena-sdk#920
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
balena-ci pushed a commit to balena-io/balena-cli that referenced this issue Jul 9, 2020
Depends on open-balena adding the mac_address &
the overall_status device fields, but the latest cli
version is probably already not working, since some
of its dependencies already use the v14 SDK which
needs the v6 model, that the open-balena-api doesn't
have yet either.

Change-type: minor
See: https://www.flowdock.com/app/rulemotion/i-cli/threads/SaSXFlJEv-dpk9uUngWY225zv2D
See: balena-io/open-balena-api#388
See: balena-io/open-balena-api#338
See: balena-io/balena-sdk#920
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
@bartversluijs
Copy link
Author

I can confirm this is fixed. See balena-io/open-balena-api#483.

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

No branches or pull requests

2 participants