API client 0.7.18 no longer connects to Huly Cloud - "Data read, but end of buffer not reached"
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:
- Was there a recent Huly Cloud upgrade that changed the protocol?
- Are there compatible package versions that work with current Huly Cloud?
- Could updated packages be published to npm or GitHub Packages?
Additional context:
- My
.npmrcis configured for GitHub Packages but@hcengineering/coreis not published there, blocking installation of newerapi-clientversions - 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
Connected to Huly®: UBERF-15381
Hello @jeremiahsmithdev I assume api-client was not updated. We will try to fix this in the coming days.
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.
@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 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.