{"record":{"id":"c8c73d09537d8fe1","repo":"Significant-Gravitas/AutoGPT","slug":"ayrshare-integration-is-not-configured","errorCode":null,"errorMessage":"Ayrshare integration is not configured","messagePattern":"Ayrshare integration is not configured","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"autogpt_platform/backend/backend/api/features/integrations/router.py","lineNumber":1378,"sourceCode":"        redirect_uri=f\"{frontend_base_url}/auth/integrations/oauth_callback\",\n    )\n\n\n@router.get(\"/ayrshare/sso_url\")\nasync def get_ayrshare_sso_url(\n    user_id: Annotated[str, Security(get_user_id)],\n) -> AyrshareSSOResponse:\n    \"\"\"Generate a JWT SSO URL so the user can link their social accounts.\n\n    The per-user Ayrshare profile key is provisioned and persisted as a\n    standard ``is_managed=True`` credential by\n    :class:`~backend.integrations.managed_providers.ayrshare.AyrshareManagedProvider`.\n    This endpoint only signs a short-lived JWT pointing at the Ayrshare-\n    hosted social-linking page; all profile lifecycle logic lives with the\n    managed provider.\n    \"\"\"\n    if not ayrshare_settings_available():\n        raise HTTPException(\n            status_code=HTTP_500_INTERNAL_SERVER_ERROR,\n            detail=\"Ayrshare integration is not configured\",\n        )\n\n    try:\n        client = AyrshareClient()\n    except MissingConfigError:\n        raise HTTPException(\n            status_code=HTTP_500_INTERNAL_SERVER_ERROR,\n            detail=\"Ayrshare integration is not configured\",\n        )\n\n    # On-demand provisioning: AyrshareManagedProvider opts out of the\n    # credentials sweep (profile quota is per-user subscription-bound).  This\n    # endpoint is the only trigger that provisions a profile — one Ayrshare\n    # profile per user who actually opens the connect flow, not one per\n    # every authenticated user.\n    provisioned = await ensure_managed_credential(","sourceCodeStart":1360,"sourceCodeEnd":1396,"githubUrl":"https://github.com/Significant-Gravitas/AutoGPT/blob/9c8bb5550f446ba5d3046b78896578742495b3cf/autogpt_platform/backend/backend/api/features/integrations/router.py#L1360-L1396","documentation":"Error \"Ayrshare integration is not configured\" thrown in Significant-Gravitas/AutoGPT.","triggerScenarios":"Thrown at autogpt_platform/backend/backend/api/features/integrations/router.py:1378 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the Ayrshare API key in the server configuration/environment.","Contact the deployment administrator to enable the Ayrshare integration."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9c8bb5550f446ba5d3046b78896578742495b3cf","analyzedAt":"2026-08-14T17:17:21.957Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}