Skip to content

fix(slackbot): correct gRPC stub casing and logger error formatting - #455

Open
Anthony-Bible wants to merge 1 commit into
masterfrom
fix/slackbot-grpc-stub-and-logger
Open

fix(slackbot): correct gRPC stub casing and logger error formatting#455
Anthony-Bible wants to merge 1 commit into
masterfrom
fix/slackbot-grpc-stub-and-logger

Conversation

@Anthony-Bible

Copy link
Copy Markdown
Owner

Summary

  • Fix messageServiceStubMessageServiceStub casing in encryptionClient.py (caused AttributeError on startup)
  • Fix TypeError in program.py error handler by using %s formatting instead of string concatenation with exception object

Root Cause

Slackbot pods were in CrashLoopBackOff due to two bugs:

  1. Missing oauthUser in Cloud SQL (fixed directly in GCP — user created with correct grants)
  2. After DB fix, crash moved to encryptionClient.py — wrong casing on the gRPC stub class name
  3. The except block in program.py would also crash with TypeError if DB setup failed

Test plan

  • CI builds and pushes new slackbot image
  • Slackbot pods come up healthy after image rollout
  • /password and /encrypt Slack commands work end-to-end

🤖 Generated with Claude Code

- Fix MessageServiceStub capitalization in encryptionClient.py
- Fix TypeError in error handler by using %s formatting instead of string concatenation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

1 participant