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

Error "The communication with Discord Web hook failed." #44

Open
Eli0uce opened this issue Sep 18, 2023 · 1 comment
Open

Error "The communication with Discord Web hook failed." #44

Eli0uce opened this issue Sep 18, 2023 · 1 comment

Comments

@Eli0uce
Copy link

Eli0uce commented Sep 18, 2023

Hello, i have fully configured the package with my laravel project, but i have this error when i reload my page
image_2023-09-19_080948435

@EnanoFurtivo
Copy link
Contributor

Had the same issue, the cURL error code (60) helped me crack it down and perhaps yours is the same, you should check the error code for further info. Anyways here is the solution i got from github copilot that worked for me:

The error message indicates that there is an SSL certificate problem when trying to communicate with the Discord Webhook. The error is specifically cURL error 60: SSL certificate problem: unable to get local issuer certificate.

This is a common issue when trying to make a request to a secure server from a local environment. The server's SSL certificate cannot be verified because your local machine does not have the necessary CA certificates to verify it.

Here's how you can fix this issue:

Download the cacert.pem file from the curl website. This file contains the CA certificates and is regularly updated.

Save this file somewhere in your local machine. For example, you can save it in C:\xampp\php\extras\ssl\cacert.pem.

Open your php.ini file. You can find this file in your PHP installation directory.

Find the line that contains curl.cainfo =. If the line is commented (i.e., it starts with a ;), uncomment it by removing the ;.

Set the path of the cacert.pem file you downloaded earlier. For example: curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem".

Save the php.ini file and restart your server.

This should solve your problem.

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