fix: disable blockchain router to prevent monitoring call conflicts
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 44s
Python Tests / test-python (push) Failing after 1m55s
Integration Tests / test-service-integration (push) Successful in 2m42s
Security Scanning / security-scan (push) Successful in 53s

Blockchain Router Changes:
- Commented out blockchain router inclusion in main.py
- Added clear deprecation notice explaining router is disabled
- Changed startup message from "added successfully" to "disabled"
- Reason: Blockchain router was preventing monitoring calls from functioning properly

Router Management:
 ROUTER DISABLED: Blockchain router no longer included in app
⚠️  Monitoring Fix: Prevents conflicts with monitoring endpoints
This commit is contained in:
aitbc
2026-03-30 23:30:59 +02:00
parent f061051ec4
commit f5b3c8c1bd
2 changed files with 467 additions and 20 deletions

View File

@@ -312,9 +312,11 @@ def create_app() -> FastAPI:
app.include_router(marketplace_offers, prefix="/v1")
# Add blockchain router for CLI compatibility
print(f"Adding blockchain router: {blockchain}")
app.include_router(blockchain, prefix="/v1")
print("Blockchain router added successfully")
# print(f"Adding blockchain router: {blockchain}")
# app.include_router(blockchain, prefix="/v1")
# BLOCKCHAIN ROUTER DISABLED - preventing monitoring calls
# Blockchain router disabled - preventing monitoring calls
print("Blockchain router disabled")
# Add Prometheus metrics endpoint
metrics_app = make_asgi_app()