You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to run 'createCustomJob' in the '@google-cloud/aiplatform' platform package, and I receive the following error when passing a numeric or string value of 'replicaCount' as part of a 'workerPoolSpec':
Error: 13 INTERNAL: Request message serialization failure: util.Long.fromValue is not a function
On further investigation, it appears that the '@google-cloud/aiplatform' library is using 'protobuf.js' (a library that hasn't been updated in ten years), instead of 'protobufjs' which is much more modern and used by libraries such as 'google-gax'.
'Protobuf.js' itself uses a version of 'long' that is also out of date, which is probably responsible for the error above.
Would be great if the code could be updated to use the 'protobufjs' library instead of 'protobuf.js'. Thanks!
The text was updated successfully, but these errors were encountered:
sofisl
added
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
and removed
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
labels
Nov 27, 2023
The scripts of our project has the same problem after using this package, and has to override long version to 5(for dev locally) for now, hope this get fixed soon.
Bumped into this same problem from Firebase throwing a Long.fromValue is not a function when used in the same repo as aiplatfrom. Solved this using a pnpm override:
"pnpm": {
"overrides": {
"long": "5.2.4"
}
}
Finding this "incompatibility" bug in production, and debugging it wasn't trivial.
Hello there.
I am attempting to run 'createCustomJob' in the '@google-cloud/aiplatform' platform package, and I receive the following error when passing a numeric or string value of 'replicaCount' as part of a 'workerPoolSpec':
On further investigation, it appears that the '@google-cloud/aiplatform' library is using 'protobuf.js' (a library that hasn't been updated in ten years), instead of 'protobufjs' which is much more modern and used by libraries such as 'google-gax'.
'Protobuf.js' itself uses a version of 'long' that is also out of date, which is probably responsible for the error above.
Ref: https://github.com/googleapis/google-cloud-node/blame/823df1eca530906515ee7f631054e845af7108c5/packages/google-cloud-aiplatform/package.json#L57
Would be great if the code could be updated to use the 'protobufjs' library instead of 'protobuf.js'. Thanks!
The text was updated successfully, but these errors were encountered: