tigrisdata-archive / tigris-client-ts

TypeScript client for Tigris
https://www.tigrisdata.com/docs/sdkstools/typescript/
Apache License 2.0
15 stars 10 forks source link

Improve error logging with a project name is used that does not exist in Tigris #377

Closed leggetter closed 1 year ago

leggetter commented 1 year ago

Is your feature request related to a problem? Please describe. If you make a mistake and use a name for a project that does not existing in Tigris you get the following output:

Error: 2 UNKNOWN: not found
--
15:10:48.381 | at callErrorFromStatus (/vercel/path0/node_modules/@grpc/grpc-js/src/call.ts:81:17)
15:10:48.382 | at Object.onReceiveStatus (/vercel/path0/node_modules/@grpc/grpc-js/src/client.ts:356:55)
15:10:48.382 | at Object.onReceiveStatus (/vercel/path0/node_modules/@grpc/grpc-js/src/client-interceptors.ts:455:34)
15:10:48.382 | at Object.onReceiveStatus (/vercel/path0/node_modules/@grpc/grpc-js/src/client-interceptors.ts:417:48)
15:10:48.382 | at /vercel/path0/node_modules/@grpc/grpc-js/src/resolving-call.ts:111:24
15:10:48.382 | at processTicksAndRejections (node:internal/process/task_queues:77:11)
15:10:48.382 | for call at
15:10:48.382 | at ServiceClientImpl.makeUnaryRequest (/vercel/path0/node_modules/@grpc/grpc-js/src/client.ts:326:30)
15:10:48.383 | at ServiceClientImpl.createBranch (/vercel/path0/node_modules/@grpc/grpc-js/src/make-client.ts:189:15)
15:10:48.383 | at /vercel/path0/node_modules/@tigrisdata/core/dist/db.js:218:29
15:10:48.383 | at new Promise (<anonymous>)
15:10:48.383 | at DB.createBranch (/vercel/path0/node_modules/@tigrisdata/core/dist/db.js:216:16)
15:10:48.383 | at DB.<anonymous> (/vercel/path0/node_modules/@tigrisdata/core/dist/db.js:255:32)
15:10:48.383 | at Generator.next (<anonymous>)
15:10:48.383 | at /vercel/path0/node_modules/@tigrisdata/core/dist/db.js:8:71
15:10:48.383 | at new Promise (<anonymous>)
15:10:48.383 | at __awaiter (/vercel/path0/node_modules/@tigrisdata/core/dist/db.js:4:12) {
15:10:48.383 | code: 2,
15:10:48.383 | details: 'not found',
15:10:48.383 | metadata: Metadata {
15:10:48.383 | internalRepr: Map(5) {
15:10:48.383 | 'server' => [Array],
15:10:48.384 | 'date' => [Array],
15:10:48.384 | 'content-type' => [Array],
15:10:48.384 | 'content-length' => [Array],
15:10:48.385 | 'set-cookie' => [Array]
15:10:48.385 | },
15:10:48.385 | options: {}
15:10:48.385 | }
15:10:48.385 | }
15:10:48.431 | Error: Command "npm run build" exited with 1

Unforutnately, there's nothing here to help you determine what the problem may be.

Describe the solution you'd like An informative message such as The project PROJECT_NAME could not be found. Please ensure PROJECT_NAME exists in your Tigris deployment or target Tigris region..

ovaistariq commented 1 year ago

/bounty $15

algora-pbc[bot] commented 1 year ago

πŸ’Ž $15 bounty created by ovaistariq πŸ™‹ If you start working on this, comment /attempt #377 to notify everyone πŸ‘‰ To claim this bounty, submit a pull request that includes the text /claim #377 somewhere in its body πŸ“ Before proceeding, please make sure you can receive payouts in your country πŸ’΅ Payment arrives in your account 2-5 days after the bounty is rewarded πŸ’― You keep 100% of the bounty award πŸ™ Thank you for contributing to tigrisdata/tigris-client-ts!

Attempt Started Solution
🟒 @jemiluv8 May 22, 2023 #378
🟑 @SSHari May 22, 2023 WIP
jemiluv8 commented 1 year ago

/attempt #377

SSHari commented 1 year ago

/attempt #377

algora-pbc[bot] commented 1 year ago

Note: The user @jemiluv8 is already attempting to complete issue #377 and claim the bounty. If you attempt to complete the same issue, there is a chance that @jemiluv8 will complete the issue first, and be awarded the bounty. We recommend discussing with @jemiluv8 and potentially collaborating on the same solution versus creating an alternate solution.

SSHari commented 1 year ago

Ahhh didn't realize @jemiluv8 was already attempting this. Going to cancel my own attempt since that's the case.

algora-pbc[bot] commented 1 year ago

πŸ’‘ @jemiluv8 submitted a pull request that claims the bounty. You can visit your org dashboard to reward.

algora-pbc[bot] commented 1 year ago

πŸŽ‰πŸŽˆ @jemiluv8 has been awarded $15! 🎈🎊

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: