Skip to content

Conversation

@bokelley
Copy link
Contributor

Problem

Deployment was hanging with AttributeError on server startup:

AttributeError: 'Product' object has no attribute 'adapter_type'

Root Cause

Solution

  • Query tenant and check tenant.adapter_type (the correct field)
  • Add Tenant to imports
  • Remove invalid product.adapter_type reference

Testing

  • ✅ All unit tests pass
  • ✅ All integration tests pass
  • ✅ Fixes deployment hang

This unblocks production deployment.

Problem:
- delivery_simulator.py was checking product.adapter_type on line 98
- Products don't have adapter_type - adapters are configured at tenant level
- This caused AttributeError on server startup, breaking deployment
- Bug introduced in PR #347 (commit 6c4ef08)

Solution:
- Query tenant instead of checking non-existent product.adapter_type
- Check tenant.adapter_type (the correct field)
- Add Tenant to imports

This fixes the production deployment hang.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley merged commit 2f3d24e into main Oct 24, 2025
3 checks passed
danf-newton pushed a commit to Newton-Research-Inc/salesagent that referenced this pull request Nov 24, 2025
…contextprotocol#595)

Problem:
- delivery_simulator.py was checking product.adapter_type on line 98
- Products don't have adapter_type - adapters are configured at tenant level
- This caused AttributeError on server startup, breaking deployment
- Bug introduced in PR adcontextprotocol#347 (commit 6c4ef08)

Solution:
- Query tenant instead of checking non-existent product.adapter_type
- Check tenant.adapter_type (the correct field)
- Add Tenant to imports

This fixes the production deployment hang.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <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.

2 participants