mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Unable to add or modify deepseek's apikey ,Credential record not found. #621
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Zhongren233 on GitHub (Sep 4, 2025).
Self Checks
Dify version
1.8.1
Cloud or Self Hosted
Cloud
Steps to reproduce
On Model Provider,I try to remove my old api key,it tell me Credential record not found.
And when I add new api key although successful, the newly added API key is not displayed
✔️ Expected Behavior
Normally add or delete api key
❌ Actual Behavior
No response
@Zhongren233 commented on GitHub (Sep 4, 2025):
I don't know if this is related to my account, but I don't think I should disclose my account in the issue.
@crazywoola commented on GitHub (Sep 4, 2025):
What's the version of the provider?
@Zhongren233 commented on GitHub (Sep 5, 2025):
deepseek 0.0.5
might i need update version?
@Zhongren233 commented on GitHub (Sep 5, 2025):
when i update to 0.0.6 still have the same problem
@crazywoola commented on GitHub (Sep 5, 2025):
I tried but I can not reproduce this.
@dosubot[bot] commented on GitHub (Sep 5, 2025):
Hi @Zhongren233! I'm Dosu and I’m helping the dify-official-plugins team.
This issue is likely caused by a mismatch or missing credential record in the backend, which can happen if the credential ID sent for deletion or update doesn't exist for your workspace and provider. This is often due to recent changes in how credentials are stored and referenced—Dify recently migrated to a new credential system using uuidv7 for IDs, and any incomplete migration or stale frontend state can trigger the "Credential record not found" error. The fact that new API keys aren't displayed after adding them suggests a UI/backend sync problem, where the frontend isn't properly refreshing or the backend isn't returning the updated credential list after changes. This isn't Deepseek-specific and can affect any provider using the new credential framework (source).
Recent major refactors to credential management (see PRs #24994, #24451, #24545) may have introduced or fixed related bugs. If you're on Dify Cloud, these changes should be live, but if the issue persists, it's likely due to a backend/frontend sync bug or a migration issue (source).
As a workaround, try refreshing the Model Provider page after adding or deleting a key to force a UI update. If the problem continues, it's possible the credential records for Deepseek (or other providers) are out of sync—this would need to be addressed by ensuring all migrations are complete and the backend is correctly returning updated credential lists. If you have access to logs, check for errors related to credential ID mismatches or missing records during these operations.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@Zhongren233 commented on GitHub (Sep 5, 2025):
Do I need to provide anything related to my account to troubleshoot?
@dosubot[bot] commented on GitHub (Sep 21, 2025):
Hi, @Zhongren233. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thanks for your understanding and contribution!