You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
composio: create_fact posts to /v2/integrations/{app_id}/user/facts, which is not a backend route (404) — Notion memory sync never lands ($25 bounty proposed) #14384
plugins/composio (the Notion → Omi memory sync) never stores a memory: every create_fact() call logs Error creating fact: HTTPError / Response status: 404 and returns False, so /api/omi/facts, /api/omi/facts/batch and the pending-memory processor all fail silently.
backend/routers/integration.py registers POST /v2/integrations/{app_id}/user/memories and has no /user/facts handler; the backend's own contract test says so explicitly (backend/tests/unit/test_integration_public_contract.py:27-29): "/v2/integrations/{app_id}/user/facts is intentionally absent: memories and facts are the same concept on the backend and are served by /user/memories (POST)."
Live check against production (a missing route 404s; a real route asks for the key):
$ curl -s -X POST -H 'Content-Type: application/json' -d '{"text":"t"}' \
'https://api.omi.me/v2/integrations/testapp/user/facts?uid=u1'
{"detail":"Not Found"} # HTTP 404
$ curl -s -X POST -H 'Content-Type: application/json' -d '{"text":"t"}' \
'https://api.omi.me/v2/integrations/testapp/user/memories?uid=u1'
{"detail":"Missing or invalid Authorization header. Must be 'Bearer API_KEY'"} # HTTP 401
The payload the plugin sends ({"text", "text_source", "text_source_spec"}) already matches the v2 route's ExternalIntegrationCreateMemory model, so only the path is wrong. This is the same defect as #14341 (manual-import); the maintainer review on #14343 pointed at this sibling occurrence.
Fix
Point the URL at /v2/integrations/{app_id}/user/memories and add a hermetic regression test (stubs fastapi/pydantic/requests/dotenv and the sibling .db module, loads the real omi_api.py, pins route/header/payload) registered in .github/checks-manifest.yaml. PR incoming.
Bounty
Per the Contribution guide ("No bounties available? … suggest your own"), proposing a US$25 bounty for this fix + regression test. cc @josancamon19@kodjima33
Investigated and fixed with Claude Code on behalf of @Suyann; every command above was actually run.
Activity
test(composio): stub src.tools_auth in omi_api route test