Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

联网搜索请求失败 #282

Closed
6 tasks done
spongxin opened this issue Nov 21, 2024 · 9 comments
Closed
6 tasks done

联网搜索请求失败 #282

spongxin opened this issue Nov 21, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@spongxin
Copy link

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整浏览项目 README 和项目文档并未找到解决方案
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我将以礼貌和尊重的态度提问,不得使用不文明用语 (包括在此发布评论的所有人同样适用, 不遵守的人将被 block)
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
后台管理中搜索接入点填入有效的searXNG搜索节点(服务器docker部署),并且能够ping通;搜索引擎选择bing,
image

复现步骤

预期结果

日志信息

相关截图 (如果有)
image

@spongxin spongxin added the bug Something isn't working label Nov 21, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Network search request failed

  • I have confirmed that there is currently no similar issue
  • I have confirmed that I have upgraded to the latest version
  • I have fully browsed the project README and project documentation and did not find a solution
  • I understand and am willing to follow up on this issue, assist in testing and provide feedback
  • I will ask questions in a polite and respectful manner and shall not use uncivilized language (the same applies to everyone who posts comments here, those who do not comply will be blocked)
  • I understand and agree with the above content, and understand that project maintainers have limited energy. Issues that do not follow the rules may be ignored or closed directly

Problem description
In the background management, fill in the valid seaXNG search node (server docker deployment) for the search access point, and it can be pinged; select bing for the search engine,
image

Steps to reproduce

Expected results

Log information

Relevant screenshots (if any)
image

@addy163
Copy link

addy163 commented Nov 21, 2024

绑定域名,开启ssl

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Bind domain name and enable ssl

@zmh-program
Copy link
Member

connect refuse,无法连接你的searxng服务

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


connection refused, unable to connect to your searxng service

@spongxin
Copy link
Author

spongxin commented Nov 23, 2024

我为searxng服务以及coai服务全部绑定了域名并使用ssl,访问网站实测能够正常搜索,但是在coai后台仍然出现搜索错误:invalid character '<" looking for beginning of value,如图:
image

image
searxng与coai部署在同一台机器,配置中填写了正确的完整域名

@SpiralTower
Copy link

通常情况下,searxNG不允许API调用,也就是说输出格式是HTML格式,你需要修改settings.yml来开启。
如果你使用docker部署,检查环境变量里是否有
SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml
如果有,请映射该配置文件到宿主机合适目录并在.yml中添加- json

search:
    formats:
         - html
         - json

重启后你可以使用curl -kLX GET --data-urlencode q='searxNG' -d format=json http://你的域名来检查是否返回JSON 。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Normally, searxNG does not allow API calls, which means that the output format is HTML format, and you need to modify settings.yml to enable it.
If you use docker deployment, check whether the environment variable contains
SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml ,
If so, please map the configuration file to the appropriate directory on the host and add -json to the .yml.

search:
    formats:
         - html
         -json

After restarting you can use curl -kLX GET --data-urlencode q='searxNG' -d format=json http://yourdomainname to check whether JSON is returned.

@zmh-program
Copy link
Member

zmh-program commented Nov 23, 2024

我为searxng服务以及coai服务全部绑定了域名并使用ssl,访问网站实测能够正常搜索,但是在coai后台仍然出现搜索错误:invalid character '<" looking for beginning of value,如图:
image

image
searxng与coai部署在同一台机器,配置中填写了正确的完整域名

@spongxin 已经说的很好了,可以按照他的步骤来。

如果使用Docker,可以辅助参考下模板: http://github.com/zmh-program/searxng

@coaidev coaidev locked and limited conversation to collaborators Nov 23, 2024
@zmh-program zmh-program converted this issue into discussion #289 Nov 23, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants