yahoo tools is not avaliable #8076

Closed
opened 2026-02-21 18:23:46 -05:00 by yindo · 18 comments
Owner

Originally created by @Sherlocksuper on GitHub (Feb 8, 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 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.15.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. create an agent
  2. add yahoo tools
  3. any models is ok
  4. ask agent like "please give me 600195.SH tickets info" or "please give me 600195 tickets info"
  5. then the agent will use yahoo tools and result is
request
{"yahoo_finance_ticker": "{\"symbol\": \"600519\"}"}
response
{"yahoo_finance_ticker": "tool invoke error: Expecting value: line 1 column 1 (char 0)"}

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Sherlocksuper on GitHub (Feb 8, 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 [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.15.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. create an agent 2. add yahoo tools 3. any models is ok 4. ask agent like "please give me 600195.SH tickets info" or "please give me 600195 tickets info" 5. then the agent will use yahoo tools and result is ``` request {"yahoo_finance_ticker": "{\"symbol\": \"600519\"}"} response {"yahoo_finance_ticker": "tool invoke error: Expecting value: line 1 column 1 (char 0)"} ``` ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug🔨 feat:tools labels 2026-02-21 18:23:46 -05:00
yindo closed this issue 2026-02-21 18:23:46 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 8, 2025):

Hello, @Sherlocksuper! I'm here to help you with bug reports, answer questions, and guide you on how to contribute. Let's tackle this issue together while we wait for a human maintainer to join in.

The error message "tool invoke error: Expecting value: line 1 column 1 (char 0)" typically indicates that the response from the Yahoo Finance API is empty or not in the expected JSON format. This can happen due to several reasons:

  1. Invalid Ticker Symbol: Ensure that the ticker symbol "600519" is valid and recognized by Yahoo Finance. If the symbol is incorrect or not supported, the API might return an empty response.

  2. Connection Issues: There might be a problem with the internet connection or the API endpoint, leading to an incomplete or empty response. Check your network connection and ensure that the API endpoint is accessible.

  3. API Limitations or Changes: Yahoo Finance might have limitations on the number of requests or changes in their API that could affect the response. Verify if there are any known issues or updates regarding the Yahoo Finance API.

  4. Configuration Issues: Double-check the configuration settings for the Yahoo tools in your Dify setup to ensure everything is correctly set up, especially if you are self-hosting.

If the issue persists, you might want to add logging or debugging to capture the exact response from the API to better understand the problem.

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Feb 8, 2025): <!-- Greeting --> Hello, @Sherlocksuper! I'm here to help you with bug reports, answer questions, and guide you on how to contribute. Let's tackle this issue together while we wait for a human maintainer to join in. <!-- Answer --> The error message "tool invoke error: Expecting value: line 1 column 1 (char 0)" typically indicates that the response from the Yahoo Finance API is empty or not in the expected JSON format. This can happen due to several reasons: 1. **Invalid Ticker Symbol**: Ensure that the ticker symbol "600519" is valid and recognized by Yahoo Finance. If the symbol is incorrect or not supported, the API might return an empty response. 2. **Connection Issues**: There might be a problem with the internet connection or the API endpoint, leading to an incomplete or empty response. Check your network connection and ensure that the API endpoint is accessible. 3. **API Limitations or Changes**: Yahoo Finance might have limitations on the number of requests or changes in their API that could affect the response. Verify if there are any known issues or updates regarding the Yahoo Finance API. 4. **Configuration Issues**: Double-check the configuration settings for the Yahoo tools in your Dify setup to ensure everything is correctly set up, especially if you are self-hosting. If the issue persists, you might want to add logging or debugging to capture the exact response from the API to better understand the problem. <!-- 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/c7d05df1-089b-4477-b846-9e304cf200a8?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c7d05df1-089b-4477-b846-9e304cf200a8?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c7d05df1-089b-4477-b846-9e304cf200a8?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c7d05df1-089b-4477-b846-9e304cf200a8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c7d05df1-089b-4477-b846-9e304cf200a8?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/c7d05df1-089b-4477-b846-9e304cf200a8?feedback_type=other)</sup>
Author
Owner

@muzea commented on GitHub (Feb 10, 2025):

ref: https://help.yahoo.com/kb/SLN2310.html

In Yahoo Finance, Shanghai Stock Exchange is coded as SS and Shenzhen Stock Exchange is coded as SZ.

You can check this link 600195.SS.

@muzea commented on GitHub (Feb 10, 2025): ref: https://help.yahoo.com/kb/SLN2310.html In Yahoo Finance, Shanghai Stock Exchange is coded as `SS` and Shenzhen Stock Exchange is coded as `SZ`. You can check this link [600195.SS](https://finance.yahoo.com/quote/600195.SS/).
Author
Owner

@Sherlocksuper commented on GitHub (Feb 17, 2025):

ref: https://help.yahoo.com/kb/SLN2310.html

In Yahoo Finance, Shanghai Stock Exchange is coded as SS and Shenzhen Stock Exchange is coded as SZ.

You can check this link 600195.SS.

Thanks for you but i tried it again
There is still an error

Image
@Sherlocksuper commented on GitHub (Feb 17, 2025): > ref: https://help.yahoo.com/kb/SLN2310.html > > In Yahoo Finance, Shanghai Stock Exchange is coded as `SS` and Shenzhen Stock Exchange is coded as `SZ`. > > You can check this link [600195.SS](https://finance.yahoo.com/quote/600195.SS/). Thanks for you but i tried it again There is still an error <img width="685" alt="Image" src="https://github.com/user-attachments/assets/92732587-7250-4697-9156-5022f6d6c4dd" />
Author
Owner

@bensontien commented on GitHub (Feb 19, 2025):

I encountered the same problem. I used 'NVDA' to get stock information by yahoo finance ticker.

{ "error_message": "Failed to invoke tool: Expecting value: line 1 column 1 (char 0)", "error_type": "UnknownError" }

@bensontien commented on GitHub (Feb 19, 2025): I encountered the same problem. I used 'NVDA' to get stock information by yahoo finance ticker. `{ "error_message": "Failed to invoke tool: Expecting value: line 1 column 1 (char 0)", "error_type": "UnknownError" }`
Author
Owner

@muzea commented on GitHub (Feb 19, 2025):

What model are you using? Maybe the model itself does not support function call?

@muzea commented on GitHub (Feb 19, 2025): What model are you using? Maybe the model itself does not support function call?
Author
Owner

@bensontien commented on GitHub (Feb 19, 2025):

I use local model, DeepSeek-R1-Distill-Qwen-32B.
Hmm... But I just test the ticker and this is the error message.

Image Image
@bensontien commented on GitHub (Feb 19, 2025): I use local model, DeepSeek-R1-Distill-Qwen-32B. Hmm... But I just test the ticker and this is the error message. <img width="244" alt="Image" src="https://github.com/user-attachments/assets/1d370787-5f1d-4a43-bdfa-39ef6e7f9598" /> <img width="235" alt="Image" src="https://github.com/user-attachments/assets/776b2c4c-4505-42ff-9488-90024de477c3" />
Author
Owner

@muzea commented on GitHub (Feb 19, 2025):

https://github.com/deepseek-ai/DeepSeek-R1/issues/9

deepseek r1 currently does not support function call, you can try to use other models.

@muzea commented on GitHub (Feb 19, 2025): https://github.com/deepseek-ai/DeepSeek-R1/issues/9 deepseek r1 currently does not support function call, you can try to use other models.
Author
Owner

@bensontien commented on GitHub (Feb 19, 2025):

Thanks for your imfomation. I will try to use other models.

@bensontien commented on GitHub (Feb 19, 2025): Thanks for your imfomation. I will try to use other models.
Author
Owner

@jaehyeongAN commented on GitHub (Feb 20, 2025):

Image

I use Gemini-2.0-Flash-001 model. But I got the same error.
I think yahoo tool doesn't work. Please check it out

@jaehyeongAN commented on GitHub (Feb 20, 2025): <img width="438" alt="Image" src="https://github.com/user-attachments/assets/36e48cd0-1855-4317-b403-e46901315202" /> I use Gemini-2.0-Flash-001 model. But I got the same error. I think yahoo tool doesn't work. Please check it out
Author
Owner

@Aaryan-Kapoor commented on GitHub (Feb 23, 2025):

Same issue!

@Aaryan-Kapoor commented on GitHub (Feb 23, 2025): Same issue!
Author
Owner

@muzea commented on GitHub (Feb 24, 2025):

There are several issues with similar error messages in yfinance
https://github.com/ranaroussi/yfinance/issues/2304
https://github.com/ranaroussi/yfinance/issues/2179

Maybe you have encountered rate-limit, or your IP has been banned by Yahoo.

Dify seems to be preparing a major version update now. After this update, adding more detailed error messages to Yahoo Tools may be helpful for troubleshooting.

@muzea commented on GitHub (Feb 24, 2025): There are several issues with similar error messages in yfinance https://github.com/ranaroussi/yfinance/issues/2304 https://github.com/ranaroussi/yfinance/issues/2179 Maybe you have encountered rate-limit, or your IP has been banned by Yahoo. Dify seems to be preparing a major version update now. After this update, adding more detailed error messages to Yahoo Tools may be helpful for troubleshooting.
Author
Owner

@tbdavid2019 commented on GitHub (Feb 25, 2025):

The dify team can update yfinance [0.2.54] to solve this issue.

@tbdavid2019 commented on GitHub (Feb 25, 2025): The dify team can update yfinance [0.2.54] to solve this issue.
Author
Owner

@filwu8 commented on GitHub (Feb 25, 2025):

为什么不从 雪球、东方财富、同花顺去调用数据呢?

@filwu8 commented on GitHub (Feb 25, 2025): 为什么不从 雪球、东方财富、同花顺去调用数据呢?
Author
Owner

@liweichen commented on GitHub (Feb 27, 2025):

I have the same issue. Tried to install both versions of yahoo finance plugins.

@liweichen commented on GitHub (Feb 27, 2025): I have the same issue. Tried to install both versions of yahoo finance plugins.
Author
Owner

@Woahai321 commented on GitHub (Feb 28, 2025):

Hello, i am running new 1.0 release and get this error too

Request {"yahoo_finance_news": {"symbol": "IBM"}} Response {"yahoo_finance_news": "tool invoke error: PluginInvokeError: {\"args\":{},\"error_type\":\"JSONDecodeError\",\"message\":\"Expecting value: line 1 column 1 (char 0)\"}"}

this was tested with GPT 4o 4omini chatgpt-4o-latest, deepseek reasoning, claude 37 and all; returning the same error.

please can this be investigated and resolved the yahoo finance plugin would be amazing if it was functional.

@Woahai321 commented on GitHub (Feb 28, 2025): Hello, i am running new 1.0 release and get this error too `Request {"yahoo_finance_news": {"symbol": "IBM"}} Response {"yahoo_finance_news": "tool invoke error: PluginInvokeError: {\"args\":{},\"error_type\":\"JSONDecodeError\",\"message\":\"Expecting value: line 1 column 1 (char 0)\"}"}` this was tested with GPT 4o 4omini chatgpt-4o-latest, deepseek reasoning, claude 37 and all; returning the same error. please can this be investigated and resolved the yahoo finance plugin would be amazing if it was functional.
Author
Owner

@fdb02983rhy commented on GitHub (Mar 1, 2025):

It caused by rate limit on my test. Not the tool itself.

@fdb02983rhy commented on GitHub (Mar 1, 2025): It caused by rate limit on my test. Not the tool itself.
Author
Owner

@liweichen commented on GitHub (Mar 1, 2025):

The error message says failed tool invoke.

On Sat, Mar 1, 2025, 4:33 PM Kalo Chin @.***> wrote:

It caused by rate limit on my test. Not the tool itself.


Reply to this email directly, view it on GitHub
https://github.com/langgenius/dify/issues/13403#issuecomment-2692429622,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAQTPMJOQNOL7DNPU5AYF7L2SIRRLAVCNFSM6AAAAABWXOV6GCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSGQZDSNRSGI
.
You are receiving this because you commented.Message ID:
@.***>
[image: fdb02983rhy]fdb02983rhy left a comment (langgenius/dify#13403)
https://github.com/langgenius/dify/issues/13403#issuecomment-2692429622

It caused by rate limit on my test. Not the tool itself.


Reply to this email directly, view it on GitHub
https://github.com/langgenius/dify/issues/13403#issuecomment-2692429622,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAQTPMJOQNOL7DNPU5AYF7L2SIRRLAVCNFSM6AAAAABWXOV6GCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSGQZDSNRSGI
.
You are receiving this because you commented.Message ID:
@.***>

@liweichen commented on GitHub (Mar 1, 2025): The error message says failed tool invoke. On Sat, Mar 1, 2025, 4:33 PM Kalo Chin ***@***.***> wrote: > It caused by rate limit on my test. Not the tool itself. > > — > Reply to this email directly, view it on GitHub > <https://github.com/langgenius/dify/issues/13403#issuecomment-2692429622>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAQTPMJOQNOL7DNPU5AYF7L2SIRRLAVCNFSM6AAAAABWXOV6GCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSGQZDSNRSGI> > . > You are receiving this because you commented.Message ID: > ***@***.***> > [image: fdb02983rhy]*fdb02983rhy* left a comment (langgenius/dify#13403) > <https://github.com/langgenius/dify/issues/13403#issuecomment-2692429622> > > It caused by rate limit on my test. Not the tool itself. > > — > Reply to this email directly, view it on GitHub > <https://github.com/langgenius/dify/issues/13403#issuecomment-2692429622>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAQTPMJOQNOL7DNPU5AYF7L2SIRRLAVCNFSM6AAAAABWXOV6GCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSGQZDSNRSGI> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Author
Owner

@fdb02983rhy commented on GitHub (Mar 1, 2025):

I just found that it caused by the SDK version. See https://github.com/langgenius/dify-official-plugins/pull/352

@fdb02983rhy commented on GitHub (Mar 1, 2025): I just found that it caused by the SDK version. See https://github.com/langgenius/dify-official-plugins/pull/352
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8076