Internal tools with credentials configured cannot load properly #8502

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

Originally created by @ginlink on GitHub (Feb 21, 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.3

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Image

  • After debugging, it was found that credentials_schema is of type list[string], but the expected type is list[ProviderConfig].

Image

✔️ Expected Behavior

  • The internal tools can be loaded properly
  • After debugging, it was found that credentials_schema is of type list[string], but the expected type is list[ProviderConfig].

Image

Actual Behavior

  • Unable to start the program properly
Originally created by @ginlink on GitHub (Feb 21, 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.3 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce - Configure internal tools according to official documents.https://docs.dify.ai/guides/tools/quick-tool-integration - An error will be reported during startup ![Image](https://github.com/user-attachments/assets/b9dda76c-2bc9-4a31-911f-686366faf8a0) - After debugging, it was found that `credentials_schema` is of type `list[string]`, but the expected type is `list[ProviderConfig]`. ![Image](https://github.com/user-attachments/assets/975c6e23-724a-4bd5-8756-89a5fd8867dc) ### ✔️ Expected Behavior - The internal tools can be loaded properly - After debugging, it was found that `credentials_schema` is of type `list[string]`, but the expected type is `list[ProviderConfig]`. ![Image](https://github.com/user-attachments/assets/975c6e23-724a-4bd5-8756-89a5fd8867dc) ### ❌ Actual Behavior - Unable to start the program properly
yindo added the 🐞 bug label 2026-02-21 18:26:02 -05:00
yindo closed this issue 2026-02-21 18:26:02 -05:00
Author
Owner

@ginlink commented on GitHub (Feb 21, 2025):

I tried adding .values() and it worked

credentials_schema = []
  for credential in provider_yaml.get("credentials_for_provider", {}).values():
      credentials_schema.append(credential)
@ginlink commented on GitHub (Feb 21, 2025): I tried adding `.values()` and it worked ``` py credentials_schema = [] for credential in provider_yaml.get("credentials_for_provider", {}).values(): credentials_schema.append(credential) ```
Author
Owner

@crazywoola commented on GitHub (Feb 21, 2025):

Please be aware, changes related to tools and model runtime will not take effect after 1.0 when you modify code. Please read our latest plugin docs.

@crazywoola commented on GitHub (Feb 21, 2025): Please be aware, changes related to tools and model runtime will not take effect after 1.0 when you modify code. Please read our latest plugin docs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8502