Anthropic Claude 3 calls all return Bad Request Errors #2821

Closed
opened 2026-02-21 17:50:25 -05:00 by yindo · 0 comments
Owner

Originally created by @sigvardt on GitHub (Apr 30, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a quesion, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

Version 0.6.5

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Activate Anthropic Claude 3 models for your user
  2. Use them in any workflow node
  3. No matter the specific Claude 3 model and prompt content, error is thrown: [anthropic] Bad Request Error, Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages: at least one message is required'}}
image

✔️ Expected Behavior

Prompt string received at Anthropic Claude 3 endpoint

Actual Behavior

No string received according to endpoint

Originally created by @sigvardt on GitHub (Apr 30, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Pleas do not modify this template :) and fill in all the required fields. ### Dify version Version 0.6.5 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Activate Anthropic Claude 3 models for your user 2. Use them in any workflow node 3. No matter the specific Claude 3 model and prompt content, error is thrown: `[anthropic] Bad Request Error, Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages: at least one message is required'}}` <img width="1033" alt="image" src="https://github.com/langgenius/dify/assets/6000238/537017a7-2d43-4497-9be4-7a440c6f5d02"> ### ✔️ Expected Behavior Prompt string received at Anthropic Claude 3 endpoint ### ❌ Actual Behavior No string received according to endpoint
yindo added the 🐞 bug label 2026-02-21 17:50:25 -05:00
yindo closed this issue 2026-02-21 17:50:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2821