The request address of curl code block has a problem #13082

Closed
opened 2026-02-21 19:10:29 -05:00 by yindo · 1 comment
Owner

Originally created by @devxing on GitHub (Apr 17, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Provide a description of requested docs changes

Image Image
Originally created by @devxing on GitHub (Apr 17, 2025). ### 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 report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Provide a description of requested docs changes <img width="870" alt="Image" src="https://github.com/user-attachments/assets/482c3178-e47b-407a-aa89-64e1eeda6837" /> <img width="822" alt="Image" src="https://github.com/user-attachments/assets/a2481c19-6aba-4e04-af08-6906ba641e3b" />
yindo added the 📚 documentationgood first issue labels 2026-02-21 19:10:29 -05:00
yindo closed this issue 2026-02-21 19:10:29 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 17, 2025):

The issue with the missing base URL in the curl code block can be resolved by ensuring that the base URL is correctly set. The correct request address for the curl command should include the base URL of your API. Here's how you can fix it:

curl --location --request GET 'http://localhost/v1/messages/{message_id}/suggested?user=abc-123' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--header 'Content-Type: application/json'

Make sure to replace http://localhost/v1 with the actual base URL of your API if it's different. The user query parameter is necessary for defining the identity of the end-user for retrieval and statistics. Ensure that props.appDetail.api_base_url is correctly set to avoid issues like 'undefined/apps/annotations' [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Apr 17, 2025): <!-- Answer --> The issue with the missing base URL in the curl code block can be resolved by ensuring that the base URL is correctly set. The correct request address for the curl command should include the base URL of your API. Here's how you can fix it: ```bash curl --location --request GET 'http://localhost/v1/messages/{message_id}/suggested?user=abc-123' \ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \ --header 'Content-Type: application/json' ``` Make sure to replace `http://localhost/v1` with the actual base URL of your API if it's different. The `user` query parameter is necessary for defining the identity of the end-user for retrieval and statistics. Ensure that `props.appDetail.api_base_url` is correctly set to avoid issues like `'undefined/apps/annotations'` <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/develop/template/template_chat.ja.mdx)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/develop/template/template_chat.en.mdx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/eec2aa13-3413-4056-be2d-7efc1681aa0e?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/eec2aa13-3413-4056-be2d-7efc1681aa0e?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/eec2aa13-3413-4056-be2d-7efc1681aa0e?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/eec2aa13-3413-4056-be2d-7efc1681aa0e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/eec2aa13-3413-4056-be2d-7efc1681aa0e?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/eec2aa13-3413-4056-be2d-7efc1681aa0e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/eec2aa13-3413-4056-be2d-7efc1681aa0e?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13082