You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, @wrfly! I'm here to assist you with any bugs, questions, or contributions you have for Dify. I can help you solve issues, answer questions, and even guide you on becoming a contributor.
The error "Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')" suggests that the clipboard API is not accessible in your current environment. This issue often arises when the page is served over HTTP instead of HTTPS, as the clipboard API requires a secure context to function properly.
To resolve this issue, consider the following steps:
Serve Over HTTPS: Ensure that your application is served over HTTPS. This is a requirement for the clipboard API to work in most modern browsers.
Check Browser Compatibility: Verify that the browser you are using supports the clipboard API and is up to date.
Review JavaScript Code: Ensure that the JavaScript code correctly accesses the navigator.clipboard object. The error indicates that navigator.clipboard might be undefined, which can happen if the API is not supported or if the page is not served securely.
If you are using the copy-to-clipboard library, ensure it is correctly implemented and that there are no version-specific issues. The version used in Dify is ^3.3.3[1].
Self Checks
Dify version
0.15.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I deployed
dify
with HTTP endpoints, while thecopy
function is not working due to it. (related question)✔️ Expected Behavior
copy the content
❌ Actual Behavior
console error
The text was updated successfully, but these errors were encountered: