tongyi multimodal-embedding-v1 InvalidParameter, url error, please check url #865

Closed
opened 2026-02-16 10:20:47 -05:00 by yindo · 7 comments
Owner

Originally created by @zhaobingshuang on GitHub (Dec 11, 2025).

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 Dify issues & Dify Official Plugins, 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

1.11.0

Plugin version

0.1.7

Cloud or Self Hosted

Cloud

Steps to reproduce

Image Image

✔️ Error log

{
    "args": {
        "description": "[models] Error: Response output is missing or does not contain embeddings: {\"status_code\": 400, \"request_id\": \"5fb4125b-c71b-45f5-810f-3a4a33572699\", \"code\": \"InvalidParameter\", \"message\": \"url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url\", \"output\": null, \"usage\": null}"
    },
    "error_type": "InvokeError",
    "message": "[models] Error: Response output is missing or does not contain embeddings: {\"status_code\": 400, \"request_id\": \"5fb4125b-c71b-45f5-810f-3a4a33572699\", \"code\": \"InvalidParameter\", \"message\": \"url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url\", \"output\": null, \"usage\": null}"
}
Originally created by @zhaobingshuang on GitHub (Dec 11, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.0 ### Plugin version 0.1.7 ### Cloud or Self Hosted Cloud ### Steps to reproduce <img width="1418" height="1330" alt="Image" src="https://github.com/user-attachments/assets/a135719a-4529-4bbd-9d95-db8fc1332f81" /> <img width="952" height="691" alt="Image" src="https://github.com/user-attachments/assets/ea6c115e-d171-40d0-bfb6-b39b7e552c4a" /> ### ✔️ Error log ```json { "args": { "description": "[models] Error: Response output is missing or does not contain embeddings: {\"status_code\": 400, \"request_id\": \"5fb4125b-c71b-45f5-810f-3a4a33572699\", \"code\": \"InvalidParameter\", \"message\": \"url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url\", \"output\": null, \"usage\": null}" }, "error_type": "InvokeError", "message": "[models] Error: Response output is missing or does not contain embeddings: {\"status_code\": 400, \"request_id\": \"5fb4125b-c71b-45f5-810f-3a4a33572699\", \"code\": \"InvalidParameter\", \"message\": \"url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url\", \"output\": null, \"usage\": null}" } ```
yindo added the bug label 2026-02-16 10:20:47 -05:00
yindo closed this issue 2026-02-16 10:20:47 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 11, 2025):

This error usually means the plugin is calling the wrong Aliyun Model Studio API endpoint for your API key region. The tongyi plugin has a setting called use_international_endpoint—when set to true, it uses the international endpoint (https://dashscope-intl.aliyuncs.com/api/v1); otherwise, it defaults to the domestic endpoint. If your API key is from the international Model Studio but the plugin is set to use the domestic endpoint (or vice versa), you'll get a 400 InvalidParameter URL error like this one.

To fix it:

  1. Double-check if your API key is from the international or domestic Aliyun Model Studio.
  2. In the plugin configuration, set the use_international_endpoint flag to match your API key's region.
  3. Make sure your API key is valid and correctly entered.
  4. If you recently updated Dify or the plugin, ensure you are using the latest version, as recent changes improved endpoint handling.

If the endpoint and key region don't match, the API call will fail with this error. The only way to control the endpoint is via the use_international_endpoint flag—there's no direct URL override in the config. More details and code references are available in the plugin source and provider YAML.

If you still see the error after checking these, let me know your API key region and the value of use_international_endpoint in your config.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 11, 2025): <!-- Answer --> This error usually means the plugin is calling the wrong Aliyun Model Studio API endpoint for your API key region. The tongyi plugin has a setting called `use_international_endpoint`—when set to `true`, it uses the international endpoint (`https://dashscope-intl.aliyuncs.com/api/v1`); otherwise, it defaults to the domestic endpoint. If your API key is from the international Model Studio but the plugin is set to use the domestic endpoint (or vice versa), you'll get a 400 InvalidParameter URL error like this one. To fix it: 1. Double-check if your API key is from the international or domestic Aliyun Model Studio. 2. In the plugin configuration, set the `use_international_endpoint` flag to match your API key's region. 3. Make sure your API key is valid and correctly entered. 4. If you recently updated Dify or the plugin, ensure you are using the latest version, as recent changes improved endpoint handling. If the endpoint and key region don't match, the API call will fail with this error. The only way to control the endpoint is via the `use_international_endpoint` flag—there's no direct URL override in the config. More details and code references are available in the [plugin source](https://github.com/langgenius/dify-official-plugins/blob/5b58359887c6e620532fc7224971d589096e6d52/models/tongyi/models/text_embedding/text_embedding.py#L12-L267) and [provider YAML](https://github.com/langgenius/dify-official-plugins/blob/5b58359887c6e620532fc7224971d589096e6d52/models/tongyi/provider/tongyi.yaml#L13-L132). If you still see the error after checking these, let me know your API key region and the value of `use_international_endpoint` in your config. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/560a126c-4754-4b64-8ba5-5d1ae63e5648?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/560a126c-4754-4b64-8ba5-5d1ae63e5648?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/560a126c-4754-4b64-8ba5-5d1ae63e5648?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/560a126c-4754-4b64-8ba5-5d1ae63e5648?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/560a126c-4754-4b64-8ba5-5d1ae63e5648?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/560a126c-4754-4b64-8ba5-5d1ae63e5648?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/560a126c-4754-4b64-8ba5-5d1ae63e5648?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20error%20usually%20means%20the%20plugin%20is%20calling%20the%20wrong%20Aliyun%20Model%20Studio%20API%20endpoint%20for%20your%20API%20key%20region.%20The%20tongyi%20plugin%20has%20a%20setting%20called%20%60use_international_endpoint%60%E2%80%94when%20set%20to%20%60true%60%2C%20it%20uses%20the%20international%20endpoint%20%28%60https%3A//dashscope-intl.aliyuncs.com/api/v1%60%29%3B%20otherwise%2C%20it%20defaults%20to%20the%20domestic%20endpoint.%20If%20your%20API%20key%20is%20from%20the%20international%20Model%20Studio%20but%20the%20plugin%20is%20set%20to%20use%20the%20domestic%20endpoint%20%28or%20vice%20versa%29%2C%20you%27ll%20get%20a%20400%20InvalidParameter%20URL%20error%20like%20this%20one.%20%0A%0ATo%20fix%20it%3A%20%20%0A1.%20Double-check%20if%20your%20API%20key%20is%20from%20the%20international%20or%20domestic%20Aliyun%20Model%20Studio.%20%20%0A2.%20In%20the%20plugin%20configuration%2C%20set%20the%20%60use_international_endpoint%60%20flag%20to%20match%20your%20API%20key%27s%20region.%20%20%0A3.%20Make%20sure%20your%20API%20key%20is%20valid%20and%20correctly%20entered.%20%20%0A4.%20If%20you%20recently%20updated%20Dify%20or%20the%20plugin%2C%20ensure%20you%20are%20using%20the%20latest%20version%2C%20as%20recent%20changes%20improved%20endpoint%20handling.%0A%0AIf%20the%20endpoint%20and%20key%20region%20don%27t%20match%2C%20the%20API%20call%20will%20fail%20with%20this%20error.%20The%20only%20way%20to%20control%20the%20endpoint%20is%20via%20the%20%60use_international_endpoint%60%20flag%E2%80%94there%27s%20no%20direct%20URL%20override%20in%20the%20config.%20More%20details%20and%20code%20references%20are%20available%20in%20the%20%5Bplugin%20source%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/5b58359887c6e620532fc7224971d589096e6d52/models/tongyi/models/text_embedding/text_embedding.py%23L12-L267%29%20and%20%5Bprovider%20YAML%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/5b58359887c6e620532fc7224971d589096e6d52/models/tongyi/provider/tongyi.yaml%23L13-L132%29.%0A%0AIf%20you%20still%20see%20the%20error%20after%20checking%20these%2C%20let%20me%20know%20your%20API%20key%20region%20and%20the%20value%20of%20%60use_international_endpoint%60%20in%20your%20config.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2236)
Author
Owner

@quchenchen commented on GitHub (Dec 15, 2025):

1.11.1,Encountered the same problem.

@quchenchen commented on GitHub (Dec 15, 2025): 1.11.1,Encountered the same problem.
Author
Owner

@quchenchen commented on GitHub (Dec 16, 2025):

use_international_endpoint false .
req_id: d65945fef9 PluginInvokeError: {"args":{"description":"[models] Error: Response output is missing or does not contain embeddings: {"status_code": 400, "request_id": "92d6f6a2-dc89-47d7-b711-d26949436383", "code": "InvalidParameter", "message": "url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url", "output": null, "usage": null}"},"error_type":"InvokeError","message":"[models] Error: Response output is missing or does not contain embeddings: {"status_code": 400, "request_id": "92d6f6a2-dc89-47d7-b711-d26949436383", "code": "InvalidParameter", "message": "url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url", "output": null, "usage": null}"} @dosu.

@quchenchen commented on GitHub (Dec 16, 2025): use_international_endpoint false . req_id: d65945fef9 PluginInvokeError: {"args":{"description":"[models] Error: Response output is missing or does not contain embeddings: {\"status_code\": 400, \"request_id\": \"92d6f6a2-dc89-47d7-b711-d26949436383\", \"code\": \"InvalidParameter\", \"message\": \"url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url\", \"output\": null, \"usage\": null}"},"error_type":"InvokeError","message":"[models] Error: Response output is missing or does not contain embeddings: {\"status_code\": 400, \"request_id\": \"92d6f6a2-dc89-47d7-b711-d26949436383\", \"code\": \"InvalidParameter\", \"message\": \"url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url\", \"output\": null, \"usage\": null}"} @dosu.
Author
Owner

@leeseng-nie commented on GitHub (Dec 17, 2025):

The multimodel embedding model id seems to be changing to "tongyi-embedding-vision-flash" and "tongyi-embedding-vision-plus". Refer Multimodal Embedding doc

@leeseng-nie commented on GitHub (Dec 17, 2025): The multimodel embedding model id seems to be changing to "tongyi-embedding-vision-flash" and "tongyi-embedding-vision-plus". Refer [Multimodal Embedding doc](https://modelstudio.console.alibabacloud.com/?tab=doc#/doc/?type=model&url=2840914_2&modelId=group-embedding)
Author
Owner

@zhaobingshuang commented on GitHub (Dec 17, 2025):

@leeseng-nie Depends on the region Text and multimodal embedding

Image Image
@zhaobingshuang commented on GitHub (Dec 17, 2025): @leeseng-nie Depends on the region [Text and multimodal embedding](https://modelstudio.console.alibabacloud.com/?tab=doc#/doc/?type=model&url=2842587) <img width="530" height="462" alt="Image" src="https://github.com/user-attachments/assets/4f864928-cdd9-4299-a27f-4ba36a4ffdd9" /> <img width="483" height="383" alt="Image" src="https://github.com/user-attachments/assets/13e932c9-26df-4dfa-bc6b-3d6cbee1cd15" />
Author
Owner

@zhaobingshuang commented on GitHub (Dec 17, 2025):

@crazywoola The problem still exists.

Image
@zhaobingshuang commented on GitHub (Dec 17, 2025): @crazywoola The problem still exists. <img width="1031" height="944" alt="Image" src="https://github.com/user-attachments/assets/8c4f0dd8-f541-4b20-b9bb-69143a78477f" />
Author
Owner

@leeseng-nie commented on GitHub (Dec 17, 2025):

@leeseng-nie Depends on the region Text and multimodal embedding

Image Image

Hope newer fix can handle both china an international regions.

@leeseng-nie commented on GitHub (Dec 17, 2025): > [@leeseng-nie](https://github.com/leeseng-nie) Depends on the region [Text and multimodal embedding](https://modelstudio.console.alibabacloud.com/?tab=doc#/doc/?type=model&url=2842587) > > <img alt="Image" width="530" height="462" src="https://private-user-images.githubusercontent.com/50354541/527509915-4f864928-cdd9-4299-a27f-4ba36a4ffdd9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjYwMjM5ODgsIm5iZiI6MTc2NjAyMzY4OCwicGF0aCI6Ii81MDM1NDU0MS81Mjc1MDk5MTUtNGY4NjQ5MjgtY2RkOS00Mjk5LWEyN2YtNGJhMzZhNGZmZGQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMjE4VDAyMDgwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc5M2UyMTVjY2U1Y2RlZDQ0OTZlZWI3YmRmZDZhNjMxN2M2ZDBmNjU1MjVhY2EyM2FkMWY3Yjg1NmQ5NjJjMDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.G1OVmdyM-XJRMwIP5g032e6i6CN_o9fwH9Qr-axzFUA"> <img alt="Image" width="483" height="383" src="https://private-user-images.githubusercontent.com/50354541/527510000-13e932c9-26df-4dfa-bc6b-3d6cbee1cd15.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjYwMjM5ODgsIm5iZiI6MTc2NjAyMzY4OCwicGF0aCI6Ii81MDM1NDU0MS81Mjc1MTAwMDAtMTNlOTMyYzktMjZkZi00ZGZhLWJjNmItM2Q2Y2JlZTFjZDE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMjE4VDAyMDgwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3M2NlMWI0NjY5NmNkMjQzMTE5MTgxMGU4NTliYTYxMjgwZWY5OWIzNmM0MDIzN2UzMzNlMTc3M2I2ZTA2MTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.eSV_exwiiGX3SbsG6rm9nfKsZasIRiA86JjEZ9FXPd4"> Hope newer fix can handle both china an international regions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#865