platform icon indicating copy to clipboard operation
platform copied to clipboard

API client 0.7.18 no longer connects to Huly Cloud - "Data read, but end of buffer not reached"

Open jeremiahsmithdev opened this issue 10 months ago • 5 comments

My integration using @hcengineering/[email protected] (latest on npm) was working ~1 month ago but now fails with:

Connected to server: 0.7.353
[Bridge] Uncaught exception: Data read, but end of buffer not reached 112

This appears to be a msgpack protocol mismatch between the npm client (0.7.18) and the current Huly Cloud server (0.7.353).

Questions:

  1. Was there a recent Huly Cloud upgrade that changed the protocol?
  2. Are there compatible package versions that work with current Huly Cloud?
  3. Could updated packages be published to npm or GitHub Packages?

Additional context:

  • My .npmrc is configured for GitHub Packages but @hcengineering/core is not published there, blocking installation of newer api-client versions
  • The connection establishes successfully and negotiates the session, but fails on the first data response
  • Using token-based authentication with workspace parameter

Environment:

  • @hcengineering/api-client: 0.7.18 (latest on npmjs.org)
  • Huly Cloud server reports: 0.7.353
  • Node.js 20.x

jeremiahsmithdev avatar Feb 03 '26 13:02 jeremiahsmithdev

Connected to Huly®: UBERF-15381

huly-github-staging avatar Feb 03 '26 13:02 huly-github-staging

Hello @jeremiahsmithdev I assume api-client was not updated. We will try to fix this in the coming days.

ArtyomSavchenko avatar Feb 04 '26 12:02 ArtyomSavchenko

This looks like a compatibility question between the hosted cloud and the published npm packages rather than a defect in the self-hostable codebase, so it can only be handled by the service operators. If maintainers agree, please consider closing.

MichaelUray avatar Oct 20 '26 15:10 MichaelUray

@jeremiahsmithdev — as explained above, this does not look like something that can be addressed in the codebase. Could you please close this issue if you agree? If you think there is a code change needed after all, please describe what should change.

MichaelUray avatar Oct 20 '26 22:10 MichaelUray

@MichaelUray Agreed — closing this.

For anyone landing here later: when this was opened, 0.7.18 was the latest api-client on npm and was protocol-incompatible with Huly Cloud. Publishing has since resumed — api-client is now at 0.7.423 on npm and @hcengineering/core is published there as well, so the installation blocker from the original report should be resolved. If you hit the same "Data read, but end of buffer not reached" error, upgrading to the latest npm release is the first thing to try.

I can't verify the fix myself — I've moved off Huly since the free hosted tier I was relying on was discontinued, so the CLI integration this was for is retired and there's nothing left on my end to validate. Thanks @ArtyomSavchenko for getting the packages back onto npm.

jeremiahsmithdev avatar Oct 21 '26 09:10 jeremiahsmithdev