Anthropic Plugin not available #753

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

Originally created by @ixchange-me on GitHub (Oct 26, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.2

Cloud or Self Hosted

Cloud

Steps to reproduce

I am trying to install the Anthropic plugin. On activation, I only get the following error message:
req_id: cca3914d27 PluginInvokeError: {"args":{},"error_type":"TypeError","message":"AnthropicLargeLanguageModel.validate_credentials() missing 1 required positional argument: 'self'"}

I tried many times, but to no avail. OpenAI plugin works as expected.

✔️ Expected Behavior

I expected the Anthropic plugin to be installed and working properly

Actual Behavior

Unable to configure Anthropic plugin.

Originally created by @ixchange-me on GitHub (Oct 26, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.2 ### Cloud or Self Hosted Cloud ### Steps to reproduce I am trying to install the Anthropic plugin. On activation, I only get the following error message: req_id: cca3914d27 PluginInvokeError: {"args":{},"error_type":"TypeError","message":"AnthropicLargeLanguageModel.validate_credentials() missing 1 required positional argument: 'self'"} I tried many times, but to no avail. OpenAI plugin works as expected. ### ✔️ Expected Behavior I expected the Anthropic plugin to be installed and working properly ### ❌ Actual Behavior Unable to configure Anthropic plugin.
yindo added the bug label 2026-02-16 10:20:23 -05:00
yindo closed this issue 2026-02-16 10:20:23 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 26, 2025):

Hi @ixchange-me! I'm Dosu and I’m helping the dify team.

This error happens because the Anthropic plugin's validate_credentials method is being called on the class rather than an instance, which causes the missing self TypeError. The plugin code itself is correct; the issue is in how Dify core/plugin loader instantiates the Anthropic model—unlike the OpenAI plugin, which works because its loader logic is correct for instance methods.

A fix would require changes in the Dify core/plugin loader to ensure the Anthropic model is instantiated before calling validate_credentials, just like the OpenAI plugin. There are similar reports for other plugins (like Tongyi and Siliconflow), confirming this is a systemic bug in plugin credential validation logic, not a configuration issue or something you can fix from the UI or environment [example issue].

For now, there is no official workaround for cloud users. If you were self-hosting, you could patch the loader logic or roll back to a previous plugin version if one worked, but on cloud this isn't possible. The best next step is to monitor for updates or fixes in future Dify releases.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Oct 26, 2025): <!-- Greeting --> Hi @ixchange-me! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> This error happens because the Anthropic plugin's `validate_credentials` method is being called on the class rather than an instance, which causes the missing `self` TypeError. The plugin code itself is correct; the issue is in how Dify core/plugin loader instantiates the Anthropic model—unlike the OpenAI plugin, which works because its loader logic is correct for instance methods. A fix would require changes in the Dify core/plugin loader to ensure the Anthropic model is instantiated before calling `validate_credentials`, just like the OpenAI plugin. There are similar reports for other plugins (like Tongyi and Siliconflow), confirming this is a systemic bug in plugin credential validation logic, not a configuration issue or something you can fix from the UI or environment [[example issue](https://github.com/langgenius/dify/issues/26937)]. For now, there is no official workaround for cloud users. If you were self-hosting, you could patch the loader logic or roll back to a previous plugin version if one worked, but on cloud this isn't possible. The best next step is to monitor for updates or fixes in future Dify releases. <!-- 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/dd00751a-c7c6-4b6f-960f-b415e27fc9c4?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/dd00751a-c7c6-4b6f-960f-b415e27fc9c4?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/dd00751a-c7c6-4b6f-960f-b415e27fc9c4?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/dd00751a-c7c6-4b6f-960f-b415e27fc9c4?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/dd00751a-c7c6-4b6f-960f-b415e27fc9c4?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/dd00751a-c7c6-4b6f-960f-b415e27fc9c4?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/dd00751a-c7c6-4b6f-960f-b415e27fc9c4?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&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/issues/27454)
Author
Owner

@ixchange-me commented on GitHub (Oct 26, 2025):

@dosu hi! Thanks for the swift reply. Would using an older version of the plugin do the trick?

@ixchange-me commented on GitHub (Oct 26, 2025): @dosu hi! Thanks for the swift reply. Would using an older version of the plugin do the trick?
Author
Owner

@dosubot[bot] commented on GitHub (Oct 26, 2025):

Using an older version of the Anthropic plugin won't resolve this error on Dify Cloud. The problem is in how the Dify core/plugin loader calls the plugin's validate_credentials method—it calls it on the class instead of an instance, which triggers the missing self TypeError. Cloud users can't select or downgrade plugin versions, so this workaround isn't possible. Even if you could, the error would likely persist because the root cause is in the loader logic, not the plugin code itself. The OpenAI plugin works because its loader logic correctly handles instance methods, but Anthropic's does not. The best option is to monitor for updates or fixes in future Dify releases.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Oct 26, 2025): <!-- Answer --> Using an older version of the Anthropic plugin won't resolve this error on Dify Cloud. The problem is in how the Dify core/plugin loader calls the plugin's validate_credentials method—it calls it on the class instead of an instance, which triggers the missing self TypeError. Cloud users can't select or downgrade plugin versions, so this workaround isn't possible. Even if you could, the error would likely persist because the root cause is in the loader logic, not the plugin code itself. The OpenAI plugin works because its loader logic correctly handles instance methods, but Anthropic's does not. The best option is to monitor for updates or fixes in future Dify releases. <!-- 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/bca54db9-93b9-4f33-a8a6-9e2ceeacc3c4?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/bca54db9-93b9-4f33-a8a6-9e2ceeacc3c4?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/bca54db9-93b9-4f33-a8a6-9e2ceeacc3c4?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/bca54db9-93b9-4f33-a8a6-9e2ceeacc3c4?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/bca54db9-93b9-4f33-a8a6-9e2ceeacc3c4?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/bca54db9-93b9-4f33-a8a6-9e2ceeacc3c4?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/bca54db9-93b9-4f33-a8a6-9e2ceeacc3c4?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&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/issues/27454)
Author
Owner

@dosubot[bot] commented on GitHub (Oct 26, 2025):

This error is caused by a bug in the Anthropic plugin's credential validation method: it's defined as an instance method but invoked as if it were static, leading to the missing self argument TypeError. The OpenAI plugin works because its credential validation method matches the expected invocation pattern.

A recent fix was merged to the dify-official-plugins repository that adds the missing _validate_credentials method to comply with the required interface, resolving installation failures for plugins like Anthropic on Dify Cloud. This update is included in plugin provider version 0.2.3 and specifically addresses the internal server error and credential validation issues you encountered. You can see details of the fix here.

If you're still on Dify 1.9.2 Cloud, check if the Anthropic plugin has been updated to version 0.2.3 or later. If not, updating the plugin should resolve the issue.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Oct 26, 2025): <!-- Answer --> This error is caused by a bug in the Anthropic plugin's credential validation method: it's defined as an instance method but invoked as if it were static, leading to the missing `self` argument TypeError. The OpenAI plugin works because its credential validation method matches the expected invocation pattern. A recent fix was merged to the dify-official-plugins repository that adds the missing `_validate_credentials` method to comply with the required interface, resolving installation failures for plugins like Anthropic on Dify Cloud. This update is included in plugin provider version 0.2.3 and specifically addresses the internal server error and credential validation issues you encountered. You can see details of the fix [here](https://github.com/langgenius/dify-official-plugins/pull/1876). If you're still on Dify 1.9.2 Cloud, check if the Anthropic plugin has been updated to version 0.2.3 or later. If not, updating the plugin should resolve the issue. <!-- 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/f391d7d7-28aa-49eb-8675-9bcda84c2a2f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/f391d7d7-28aa-49eb-8675-9bcda84c2a2f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/f391d7d7-28aa-49eb-8675-9bcda84c2a2f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/f391d7d7-28aa-49eb-8675-9bcda84c2a2f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f391d7d7-28aa-49eb-8675-9bcda84c2a2f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/f391d7d7-28aa-49eb-8675-9bcda84c2a2f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f391d7d7-28aa-49eb-8675-9bcda84c2a2f?feedback_type=other)</sup>&nbsp;&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/1933)
Author
Owner

@hjlarry commented on GitHub (Oct 28, 2025):

It has fixed now

@hjlarry commented on GitHub (Oct 28, 2025): It has fixed now
Author
Owner

@dosubot[bot] commented on GitHub (Nov 13, 2025):

Hi, @ixchange-me. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that the Anthropic plugin failed to activate on Dify 1.9.2 cloud due to a TypeError from the validate_credentials method being called incorrectly.
  • The root cause was a systemic bug in Dify's plugin loader calling the method on the class instead of an instance.
  • A fix was merged in version 0.2.3 of the dify-official-plugins repo, adding the required method to the Anthropic plugin.
  • The maintainer confirmed that this patch resolved the issue and the plugin now activates properly.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • Otherwise, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Nov 13, 2025): Hi, @ixchange-me. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. Issue Summary: - You reported that the Anthropic plugin failed to activate on Dify 1.9.2 cloud due to a TypeError from the validate_credentials method being called incorrectly. - The root cause was a systemic bug in Dify's plugin loader calling the method on the class instead of an instance. - A fix was merged in version 0.2.3 of the dify-official-plugins repo, adding the required method to the Anthropic plugin. - The maintainer confirmed that this patch resolved the issue and the plugin now activates properly. Next Steps: - Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - Otherwise, I will automatically close this issue in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#753