{"record":{"id":"b5a71abb3f69e09c","repo":"langgenius/dify","slug":"internal-server-error","errorCode":null,"errorMessage":"Internal Server Error","messagePattern":"Internal Server Error","errorType":"http","errorClass":"InternalServerError","httpStatus":500,"severity":"error","filePath":"api/controllers/console/app/audio.py","lineNumber":178,"sourceCode":"    except ProviderNotSupportSpeechToTextServiceError:\n        raise ProviderNotSupportSpeechToTextError()\n    except SpeechToTextDisabledServiceError:\n        raise SpeechToTextDisabledError()\n    except ProviderTokenNotInitError as ex:\n        raise ProviderNotInitializeError(ex.description)\n    except QuotaExceededError:\n        raise ProviderQuotaExceededError()\n    except ModelCurrentlyNotSupportError:\n        raise ProviderModelCurrentlyNotSupportError()\n    except InvokeError as e:\n        raise CompletionRequestError(e.description)\n    except HTTPException:\n        raise\n    except ValueError:\n        raise\n    except Exception as e:\n        logger.exception(\"Failed to transcribe audio to text\")\n        raise InternalServerError() from e\n\n\n@console_ns.route(\"/apps/<uuid:app_id>/audio-to-text\")\nclass ChatMessageAudioApi(Resource):\n    @console_ns.doc(\"chat_message_audio_transcript\")\n    @console_ns.doc(description=\"Transcript audio to text for chat messages\")\n    @console_ns.doc(\n        consumes=[\"multipart/form-data\"],\n        params={\"app_id\": \"App ID\", \"file\": _AUDIO_TRANSCRIPT_FILE_PARAM},\n    )\n    @console_ns.response(\n        200,\n        \"Audio transcription successful\",\n        console_ns.models[AudioTranscriptResponse.__name__],\n    )\n    @console_ns.response(400, \"Bad request - No audio uploaded or unsupported type\")\n    @console_ns.response(413, \"Audio file too large\")\n    @setup_required","sourceCodeStart":160,"sourceCodeEnd":196,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/api/controllers/console/app/audio.py#L160-L196","documentation":"Error \"Internal Server Error\" thrown in langgenius/dify.","triggerScenarios":"Thrown at api/controllers/console/app/audio.py:178 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}