error when uninstalling app while watching its logs in the console

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
grpc, typescript
Domain
cli, observability

Research direction

Reproduce the failure by uninstalling an app while watching its logs, then inspect the logged entry points app-log-observer.js and grpc-web-rpc.js in the stack trace. Determine the expected behavior for the NotFound response and verify that the console no longer emits an unhandled error in this scenario.

Written by the indexing model from the issue text.

Description

unhandled error if you uninstall an app while watching its logs in the console:

/home/Yay295/.bun/install/global/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js:13
            throw err;
            ^

CLIError: error while fetching logs: Error: gRPC-web code 5 (NotFound); unable to locate app version
    at onEnd (file:///home/Yay295/.bun/install/global/node_modules/@devvit/cli/dist/util/grpc-web-rpc.js:89:46)
    at /home/Yay295/.bun/install/global/node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js:1:11011
    at Array.forEach (<anonymous>)
    at e.rawOnEnd (/home/Yay295/.bun/install/global/node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js:1:10973)
    at e.onTransportEnd (/home/Yay295/.bun/install/global/node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js:1:10131)
    at IncomingMessage.<anonymous> (/home/Yay295/.bun/install/global/node_modules/@improbable-eng/grpc-web-node-http-transport/lib/index.js:38:27)
    at IncomingMessage.emit (node:events:526:35)
    at endReadableNT (node:internal/streams/readable:1376:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Object.error (/home/Yay295/.bun/install/global/node_modules/@oclif/core/lib/errors/index.js:27:15)
    at Logs.error (/home/Yay295/.bun/install/global/node_modules/@oclif/core/lib/command.js:139:23)
    at AppLogObserver.error (file:///home/Yay295/.bun/install/global/node_modules/@devvit/cli/dist/util/app-logs/app-log-observer.js:60:67)
    at ConsumerObserver.error (/home/Yay295/.bun/install/global/node_modules/rxjs/dist/cjs/internal/Subscriber.js:124:33)
    at Subscriber._error (/home/Yay295/.bun/install/global/node_modules/rxjs/dist/cjs/internal/Subscriber.js:84:30)
    at Subscriber.error (/home/Yay295/.bun/install/global/node_modules/rxjs/dist/cjs/internal/Subscriber.js:60:18)
    at Subscriber._error (/home/Yay295/.bun/install/global/node_modules/rxjs/dist/cjs/internal/Subscriber.js:84:30)
    at Subscriber.error (/home/Yay295/.bun/install/global/node_modules/rxjs/dist/cjs/internal/Subscriber.js:60:18)
    at /home/Yay295/.bun/install/global/node_modules/rxjs/dist/cjs/internal/operators/retry.js:60:36
    at OperatorSubscriber._this._error (/home/Yay295/.bun/install/global/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:43:21) {
  oclif: { exit: 2 },
  code: undefined
}
Dominant language
TypeScript
Stars
210
Forks
88
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reddit/devvit

All issues in reddit/devvit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.