{"record":{"id":"57c20ac72b67c5c1","repo":"langflow-ai/langflow","slug":"request-body-is-empty-you-should-provide-a-json-p","errorCode":null,"errorMessage":"Request body is empty. You should provide a JSON payload containing the flow ID.","messagePattern":"Request body is empty\\. You should provide a JSON payload containing the flow ID\\.","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"src/backend/base/langflow/api/v1/endpoints.py","lineNumber":1041,"sourceCode":"\n    await ensure_flow_permission(\n        webhook_user,\n        FlowAction.EXECUTE,\n        flow_id=flow.id,\n        flow_user_id=flow.user_id,\n        workspace_id=flow.workspace_id,\n        folder_id=flow.folder_id,\n    )\n\n    try:\n        data = await request.body()\n    except Exception as exc:\n        error_msg = str(exc)\n        raise HTTPException(status_code=500, detail=error_msg) from exc\n\n    if not data:\n        error_msg = \"Request body is empty. You should provide a JSON payload containing the flow ID.\"\n        raise HTTPException(status_code=400, detail=error_msg)\n\n    raise_if_hitl_unsupported(flow.data or {})\n\n    try:\n        # get all webhook components in the flow\n        webhook_components = get_all_webhook_components_in_flow(flow.data)\n        tweaks = {}\n\n        for component in webhook_components:\n            tweaks[component[\"id\"]] = {\"data\": data.decode() if isinstance(data, bytes) else data}\n        input_request = SimplifiedAPIRequest(\n            input_value=\"\",\n            input_type=\"chat\",\n            output_type=\"chat\",\n            tweaks=tweaks,\n            session_id=None,\n        )\n","sourceCodeStart":1023,"sourceCodeEnd":1059,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/endpoints.py#L1023-L1059","documentation":"Error \"Request body is empty. You should provide a JSON payload containing the flow ID.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when a POST request to the endpoint arrives with an empty body; a JSON payload containing the flow ID is required.","commonSituations":"See trigger scenarios.","solutions":["Send a JSON request body containing the flow id, e.g. {\"id\": \"<flow-uuid>\"}.","Ensure the Content-Type header is application/json."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}