Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not list conversations via the service api #11051

Open
5 tasks done
badbye opened this issue Nov 25, 2024 · 1 comment
Open
5 tasks done

can not list conversations via the service api #11051

badbye opened this issue Nov 25, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@badbye
Copy link
Contributor

badbye commented Nov 25, 2024

Self Checks

  • This is only for bug report, if you would like to ask a question, 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).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.11.2

Cloud or Self Hosted

Cloud

Steps to reproduce

doc: https://cloud.dify.ai/app/6a1e97c1-4864-414a-9cbe-aab3b46d86ba/develop#conversations

curl -X GET 'https://api.dify.ai/v1/conversations?user=abc-123&last_id=&limit=20'\ --header 'Authorization: Bearer {api_key}'
  1. The doc said the user parameter is "用户标识,由开发者定义规则,需保证用户标识在应用内唯一。", it not clear enough. I have no idea what should I use.

  2. Not matter I ignore the user parameter, or use my username/email, it returns nothing.

✔️ Expected Behavior

I expect it return the conversation list shows in the app log page.

image

❌ Actual Behavior

returns nothing

Copy link

dosubot bot commented Nov 25, 2024

I found a similar open issue titled "API's Arg user can be empty" which might be related to the problem you're experiencing. This issue is still open and was last updated on November 24, 2024, but it doesn't have any comments or solutions yet [1].

Regarding the 'user' parameter, the correct format and expected value is a string, such as "abc-123" [2]. It seems like the documentation might not be clear enough on what specific value to use for the 'user' parameter. It should be a unique identifier for the user within your application, as defined by your own rules.

If using your username or email doesn't work, ensure that the 'user' parameter is set to a unique identifier that your application recognizes. If the issue persists, it might be worth checking if there are any specific authentication or permission requirements needed to access the conversation list via the API, although I couldn't find specific details on this [2].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant