#249 — BUG: 500 on POST /integrations with wrong access_key
Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned
Created: 2024-12-20 · Updated: 2025-03-24
Description
Caused by https://twill-network.slack.com/archives/C07TPN6FCBX/p1734618213959499
Steps to reproduce:
- In staging: login under “master” tenant and call POST /integrations with wrong access_key
Expected behavior: 400 with short explanation what was wrong (in this case Failed to create integration '{'source_type': 'Quickbooks Online', 'mediator_type': 'Rutter', 'public_token': None, 'start_job_type': 'reload', 'name': 'Green Lantern', 'link_url': 'https://dashboard.rutterapi.com/connections/fa5f379b-a3e6-4e2a-8e53-26e9f1ac705d/progress'}' for tenant 'AlksndrTwl' on BusinessData service via 'http://ca-stg-businessdata-eastus/api/v1/tenants/AlksndrTwl/integrations': {"message":"https://production.rutterapi.com/versioned/connections/access_token?access_token=66b7503c-27c2-4ac4-85b2-c0af5873eb2a: returned 405 '{\"error_type\":\"CONNECTION_ERROR\",\"error_code\":\"CONNECTION_DISABLED\",\"error_message\":\"This connection was disabled because of a problem. Please contact <sensitive> for assistance.\"}).
Actual behavior: API returns 500 with following [logs](https://portal.azure.com#@ca84ad29-936a-41a9-a523-35c3760c1302/blade/Microsoft_OperationsManagementSuite_Workspace/Logs.ReactView/resourceId/%2Fsubscriptions%2F9fada0e8-ad9d-4af4-ae3e-c50dadb7296c%2Fresourcegroups%2Frg-staging-twill-eastus%2Fproviders%2Fmicrosoft.operationalinsights%2Fworkspaces%2Fworkspacergstagingtwilleastusad9c/source/LogsBlade.AnalyticsShareLinkToQuery/q/H4sIAAAAAAAAA2WOsW7CQAyGd57CzUykLB1vQ
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets