mirror of
https://github.com/langgenius/dify.git
synced 2026-02-03 17:41:35 +08:00
Merge main
This commit is contained in:
parent
08034532f6
commit
87439b8fec
@ -36,9 +36,8 @@ def trigger_endpoint(endpoint_id: str):
|
||||
logger.error("Endpoint not found for {endpoint_id}")
|
||||
return jsonify({"error": "Endpoint not found"}), 404
|
||||
return response
|
||||
except ValueError:
|
||||
logger.exception("Endpoint processing failed for {endpoint_id}")
|
||||
return jsonify({"error": "Endpoint processing failed"}), 500
|
||||
except Exception as e:
|
||||
except ValueError as e:
|
||||
return jsonify({"error": "Endpoint processing failed", "message": str(e)}), 400
|
||||
except Exception:
|
||||
logger.exception("Webhook processing failed for {endpoint_id}")
|
||||
return jsonify({"error": "Internal server error"}), 500
|
||||
|
||||
Loading…
Reference in New Issue
Block a user