googleapis / googleapis/google-cloud-node

@google-cloud/aiplatform using very old protobuf.js library causing issues with gRPC

Open
#4,847 3 comments 2 reactions 0 assignees View on GitHub
type: feature request
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

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':

```
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.

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.