如何修复此错误“无法连接,请检查您的 Algolia 应用程序 ID"? [英] How to fix this error "Impossible to connect, please check your Algolia Application Id"?

查看:33
本文介绍了如何修复此错误“无法连接,请检查您的 Algolia 应用程序 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.pemhttps://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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆