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

Ubuntu Mint 22.04: gd-images / Couldn't connect to Bing. #27

Open
NicolasNewman opened this issue Jan 5, 2025 · 1 comment
Open

Ubuntu Mint 22.04: gd-images / Couldn't connect to Bing. #27

NicolasNewman opened this issue Jan 5, 2025 · 1 comment

Comments

@NicolasNewman
Copy link
Contributor

NicolasNewman commented Jan 5, 2025

Environment

  1. Ubuntu Mint
  2. 22.04

Describe the bug
Running gd-images --max-time 6 --word "犬" returns Couldn't connect to Bing.

** Fix **
On a closer inspection, r.error.message contains Protocol https not supported.

Locally, I managed to fix it with the following changes to xmake.lua:

add_requires("cpr >= 1.10.5", {configs = {ssl = true}})
add_requires("nlohmann_json", "marisa", "rdricpp", "mecab")

...

add_packages("cpr", {configs = {ssl = true} })
add_packages("nlohmann_json", "marisa", "rdricpp", "mecab")

Which resulted in the correct html being generated.

I'm not familiar enough with the C++ ecosystem to know how these changes will effect other users so I personally won't make a PR with these changes.

@tatsumoto-ren
Copy link
Member

I don't know why it doesn't work for you but works for everyone else. But I think it if we add this config option it won't break anything.

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

No branches or pull requests

2 participants