BingWebSearch can't use other Market and Language #5213

Closed
opened 2026-02-21 18:09:54 -05:00 by yindo · 2 comments
Owner

Originally created by @LeoHsu0802 on GitHub (Aug 26, 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.6.16

Cloud or Self Hosted

Cloud

Steps to reproduce

image

Use BingWebSearch and choose market Taiwan, Langu: Chinese(Traditional)

✔️ Expected Behavior

Expect return search result correctly

Actual Behavior

Run failed: Node BingWebSearch run failed: Failed to invoke tool: Error 400: {"_type": "ErrorResponse", "errors": [{"_type": "Error", "code": "InvalidRequest", "subCode": "ParameterInvalidValue", "message": "Parameter has invalid value.", "moreDetails":"Entity Search is not allowed for this market.", "parameter": "mkt", "value": "zh-hant-TW" }]}

Originally created by @LeoHsu0802 on GitHub (Aug 26, 2024). ### 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 [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] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.16 ### Cloud or Self Hosted Cloud ### Steps to reproduce ![image](https://github.com/user-attachments/assets/ed5900ed-ef43-4a11-99bd-77dd42e84d47) Use BingWebSearch and choose market Taiwan, Langu: Chinese(Traditional) ### ✔️ Expected Behavior Expect return search result correctly ### ❌ Actual Behavior Run failed: Node BingWebSearch run failed: Failed to invoke tool: Error 400: {"_type": "ErrorResponse", "errors": [{"_type": "Error", "code": "InvalidRequest", "subCode": "ParameterInvalidValue", "message": "Parameter has invalid value.", "moreDetails":"Entity Search is not allowed for this market.", "parameter": "mkt", "value": "zh-hant-TW" }]}
yindo added the 💪 enhancement label 2026-02-21 18:09:54 -05:00
yindo closed this issue 2026-02-21 18:09:54 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 26, 2024):

The "InvalidRequest" error you're encountering with the BingWebSearch node when using the Taiwan market and Chinese (Traditional) language parameters is likely due to a mismatch or unsupported combination of market and language settings. Ensure that the market is set to "TW" and the language is set to "zh-hant" in your request.

Here is an example configuration snippet:

parameters:
  - name: market
    type: select
    label:
      en_US: Market
    required: false
    form: form
    default: TW
    options:
      - value: TW
        label:
          en_US: Taiwan
  - name: language
    type: select
    label:
      en_US: Language
    required: false
    default: zh-hant
    form: form
    options:
      - value: zh-hant
        label:
          en_US: Chinese (Traditional)

If the error persists, it might be due to an issue with the Bing API itself or a restriction on the combination of these parameters [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Aug 26, 2024): <!-- Answer --> The "InvalidRequest" error you're encountering with the BingWebSearch node when using the Taiwan market and Chinese (Traditional) language parameters is likely due to a mismatch or unsupported combination of market and language settings. Ensure that the market is set to "TW" and the language is set to "zh-hant" in your request. Here is an example configuration snippet: ```yaml parameters: - name: market type: select label: en_US: Market required: false form: form default: TW options: - value: TW label: en_US: Taiwan - name: language type: select label: en_US: Language required: false default: zh-hant form: form options: - value: zh-hant label: en_US: Chinese (Traditional) ``` If the error persists, it might be due to an issue with the Bing API itself or a restriction on the combination of these parameters <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/tools/provider/builtin/bing/tools/bing_web_search.yaml)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Aug 26, 2024):

Feel free to contribute to this feature, I think you could add more areas in this file.

@crazywoola commented on GitHub (Aug 26, 2024): Feel free to contribute to this feature, I think you could add more areas in this file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5213