如何解决此错误“无法连接,请检查您的Algolia申请ID"? [英] How to fix this error "Impossible to connect, please check your Algolia Application Id"?
问题描述
我在 laravel/algolia 网站上写的所有内容都正确无误.
I have everything correct, as written at laravel/algolia websites.
我试图阅读许多有关Laravel Scout安装的文档和教程,但仍然找不到解决方案.
I tried to read lot of documentations and tutorials about Laravel Scout installation, but still can't find solution.
我的设置中的所有内容都正确无误,API也正确,但仍然出现此错误:
I have everything correct in my settings and also APIs are correct but still getting this error:
无法连接,请检查您的Algolia申请ID.
Impossible to connect, please check your Algolia Application Id.
推荐答案
我在Windows 10中遇到了同样的问题,并在堆栈跟踪中发现了此异常:
I had the same issue (with Windows 10) and found this exception in the stack trace:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
我在另一个 StackOverflow帖子:
1)从以下位置下载最新的cacert.pem https://curl.haxx.se/ca/cacert.pem
1) Download the latest cacert.pem from https://curl.haxx.se/ca/cacert.pem
2)将以下行添加到php.ini中(如果这是共享主机,并且 您无权访问php.ini,则可以将其添加到.user.ini 在public_html中)
2) Add the following line to php.ini (if this is shared hosting and you don't have access to php.ini then you could add this to .user.ini in public_html)
curl.cainfo ="/path/to/downloaded/cacert.pem"
curl.cainfo="/path/to/downloaded/cacert.pem"
确保将路径用双引号引起来!!!
Make sure you enclose the path within double quotation marks!!!
它解决了我的问题,此后Laravel Scout工作正常.希望这会对某人有所帮助.
It solved my problem, Laravel Scout is working fine after that. Hope this will help someone.
这篇关于如何解决此错误“无法连接,请检查您的Algolia申请ID"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!