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

UNIMPLEMENTED error messages report "[object Object] #2527

Closed
mdouglass opened this issue Jul 28, 2023 · 3 comments
Closed

UNIMPLEMENTED error messages report "[object Object] #2527

mdouglass opened this issue Jul 28, 2023 · 3 comments

Comments

@mdouglass
Copy link
Contributor

Problem description

If a service returns code 12 UNIMPLEMENTED, grpc-js 1.18-1.20 all report the error as:

Error: 12 UNIMPLEMENTED: [object Object]
    at callErrorFromStatus (/home/matthew/gww/km-server/e2e-tests/node_modules/@grpc/grpc-js/src/call.ts:81:17)
    at Object.onReceiveStatus (/home/matthew/gww/km-server/e2e-tests/node_modules/@grpc/grpc-js/src/client.ts:356:55)
    at Object.onReceiveStatus (/home/matthew/gww/km-server/e2e-tests/node_modules/@grpc/grpc-js/src/client-interceptors.ts:454:34)
    at Object.onReceiveStatus (/home/matthew/gww/km-server/e2e-tests/node_modules/@grpc/grpc-js/src/client-interceptors.ts:416:48)
    at /home/matthew/gww/km-server/e2e-tests/node_modules/@grpc/grpc-js/src/resolving-call.ts:111:24
    at processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/home/matthew/gww/km-server/e2e-tests/node_modules/@grpc/grpc-js/src/client.ts:326:42)
    at ServiceClientImpl.beginReset (/home/matthew/gww/km-server/e2e-tests/node_modules/@grpc/grpc-js/src/make-client.ts:189:15)
    at /home/matthew/gww/km-server/e2e-tests/node_modules/@globalworldwide/km-core/lib/net/grpc-client.ts:123:7
    at new Promise (<anonymous>)
    at TestClient.unary (/home/matthew/gww/km-server/e2e-tests/node_modules/@globalworldwide/km-core/lib/net/grpc-client.ts:115:12)
    at TestClient.beginReset (/home/matthew/gww/km-server/e2e-tests/node_modules/@globalworldwide/km-core/lib/net/generated/clients.ts:3553:17)
    at resetAttempt (/home/matthew/gww/km-server/e2e-tests/lib/infrastructure/reset.ts:32:38)
    at RetryStrategy.attempt (/home/matthew/gww/km-server/e2e-tests/node_modules/@globalworldwide/km-core/lib/retry.ts:100:22)
    at /home/matthew/gww/km-server/e2e-tests/lib/infrastructure/reset.ts:30:30
    at useTestClient (/home/matthew/gww/km-server/e2e-tests/lib/infrastructure/use-test-client.ts:11:15) {
  code: 12,
  details: '[object Object]',
  metadata: Metadata {
    internalRepr: Map(3) {
      'content-type' => [Array],
      'date' => [Array],
      'server' => [Array]
    },
    options: {}
  }
}

Reproduction steps

Any call to any service that returns code 12.

Environment

Linux 6.3.11-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jul 2 13:17:31 UTC 2023 x86_64 GNU/Linux
node.js v20.3.0 via nvm
grpc-js v1.18 and 1.20 have been tested

@mdouglass
Copy link
Contributor Author

You rock @murgatroid99, thank you!

@murgatroid99
Copy link
Member

This is fixed in 1.8.21.

@mdouglass
Copy link
Contributor Author

Just tried it out worked great, thanks again!

Caused by: grpc.ServiceError [grpc-status.unimplemented]: The server does not implement the method /Test/BeginReset (TsEo85DH3iYk5K)

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