dify java调用400 bad request / 401 #1528

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

Originally created by @deepblue-star on GitHub (Mar 25, 2024).

Self Checks

  • 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.

Provide a description of the help you need

在我把difyClientConstants.java中的URL改成http://localhost/v1,将API-KEY换成自己创建的助手的API-KEY之后,发送request仍然无法得到回复,得到的response返回的是400 bad request。
如果URL保持原本的,得到的response是401,response message为空。

应该如何正确调用java实现对话呢?

Originally created by @deepblue-star on GitHub (Mar 25, 2024). ### Self Checks - [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. ### Provide a description of the help you need 在我把difyClientConstants.java中的URL改成http://localhost/v1,将API-KEY换成自己创建的助手的API-KEY之后,发送request仍然无法得到回复,得到的response返回的是400 bad request。 如果URL保持原本的,得到的response是401,response message为空。 应该如何正确调用java实现对话呢?
yindo closed this issue 2026-02-21 17:34:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#1528