Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

networkGet(url) failing in "Tab for URLs with Title and Icon" command #2634

Closed
richlux opened this issue Mar 14, 2024 · 3 comments · Fixed by #2641
Closed

networkGet(url) failing in "Tab for URLs with Title and Icon" command #2634

richlux opened this issue Mar 14, 2024 · 3 comments · Fixed by #2641
Labels
bug Windows Relates to Windows OS

Comments

@richlux
Copy link

richlux commented Mar 14, 2024

The "Tab for URLs with Title and Icon" command in the documentation is no longer working. I've traced it down to the networkGet function. The networkGet(url) function appears to be failing. It is returning the error "TLS initialization failed". I also see the following messages in the Server Log:

CopyQ Warning [2024-03-14 11:46:38.144] : [qt.network.ssl] QtWarning: No TLS backend is available
CopyQ Warning [2024-03-14 11:46:38.144] : [qt.network.ssl] QtWarning: No functional TLS backend was found
CopyQ Warning [2024-03-14 11:46:38.157] : [qt.network.ssl] QtWarning: QSslSocket::connectToHostEncrypted: TLS initialization failed

To Reproduce this you can add "serverLog(reply.error) to the "fetchContent" function and then copy a URL. You will see the error string in the log file.

I'm running the latest version of CopyQ (8.0.0) on Windows 11

This is unrelated, but in case someone else is interested, you can use the old method to get the Icon via API call to "https://s2.googleusercontent.com/s2/favicons?domain_url=", if the method in the current command fails.

Thanks,
Rich

@richlux richlux added the bug label Mar 14, 2024
@richlux richlux changed the title Tab for URLs with Title and Icon command not working networkGet(url) failing in "Tab for URLs with Title and Icon" command Mar 14, 2024
hluk added a commit that referenced this issue Mar 17, 2024
@hluk
Copy link
Owner

hluk commented Mar 17, 2024

The reason is most probably missing plugin in copyq.exe installer. Fixing.

Workaround would be to copy the tls folder from copyq.zip to the installation directory.

@hluk hluk added the Windows Relates to Windows OS label Mar 17, 2024
hluk added a commit that referenced this issue Mar 17, 2024
@hluk
Copy link
Owner

hluk commented Mar 17, 2024

@richlux
Copy link
Author

richlux commented Mar 17, 2024

Thanks! This fixed the problem getting the data, but now the Title of the page that is put into the Notes field is wrapping strangely after I copy the URL. If I edit the Clip without even saving it, the formatting is corrected. See the images below.

image

If I edit the clip and the press ESC without making any changes, the Title formats properly and doesn't wrap.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Windows Relates to Windows OS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants