Replies: 1 comment
-
|
This is a confirmed bug in Dify v1.9.0 that was fixed the day after release in PR #26187. Root cause: In v1.9.0, the if not isinstance(current_user, EndUser):
raise ValueError("Invalid user account")The dataset API authentication decorator ( Solution: Upgrade to any version after v1.9.0 (e.g., v1.9.1+). The fix removed both If you can't upgrade immediately, you can patch Also note: the correct dataset API key prefix is To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
@app.route('/api/upload-document', methods=['POST'])
def upload_document():
dataset_id = request.form.get('dataset_id')
if 'file' not in request.files:
return jsonify({'error': 'xxx'}), 400
file = request.files['file']
response :{"code":"invalid_param","message":"Invalid user account","status":400}
Beta Was this translation helpful? Give feedback.
All reactions