munafio / chatify

Laravel's #1 one-to-one chatting system package, helps you add a complete real-time chatting system to your new/existing Laravel application with only one command.
https://chatify.munafio.com
GNU General Public License v3.0
2.23k stars 473 forks source link

Error : Failed sending the message! Please, check your server response; Send message status 500 #147

Closed imo-hub closed 2 years ago

imo-hub commented 2 years ago

Hi Munafio, thanks for create the great apps But i get a little problem here,

the message can not send automatically and i need to click client profile to send or update the message image image image image

i'm using Laravel 8, php 7.4, MySQL Server and valet for windows image image image image

i follow step-by-step to install chatify

  1. create apps

  2. install laravel UI auth (FYI : i didn't install Laravel Debugbar)

  3. install chatify image image image

  4. create some user using tinker image image

  5. create Pusher Account & Setting image image

Setting on my .env file image

FYI : no error log from Pusher Account image image image

  1. Internet speed it's ok image

  2. And no additional setting or file (just create new fresh project from Laravel) image

  3. Standard browser and up to date (no additional setting or extention) image

How to solve this problem?

Thanks

munafio commented 2 years ago

@imo-hub You did everything as mentioned in the docs very well, but you have an issue by sending a message! Can you please check out the error occurring by click on the error in the network tab and share it here?

imo-hub commented 2 years ago

This is my network tab image

This is detail error from jquery.js image

Thanks

imo-hub commented 2 years ago

Here is the gif

https://user-images.githubusercontent.com/66655362/137417768-db35699d-5214-43d4-9a4a-8212bd540365.mp4

munafio commented 2 years ago

@imo-hub Click on the sendMessage error, not the js code (jQuery code).. I want to see the response coming from the this request

imo-hub commented 2 years ago

@munafio here is the preview tab image image

thanks

munafio commented 2 years ago

@imo-hub The problem here is with GuzzleHttp client not Chatify! as the error says there is an issue with your ssl certificate, I have searched about this issue and it seems it is a common issue and there is lots of solutions you can check.

bakerhassan20 commented 1 year ago

Can you solve this problem please

bakerhassan20 commented 1 year ago

@imo-hub The problem here is with GuzzleHttp client not Chatify! as the error says there is an issue with your ssl certificate, I have searched about this issue and it seems it is a common issue and there is lots of solutions you can check.

Can you solve this problem please

Arooj097 commented 1 year ago

was this issue solved ?

Arooj097 commented 1 year ago

i am getting no network errors but the message is still not send and no issue of SSL certificate.

tauseedzaman commented 1 year ago

i am getting no network errors but the message is still not send and no issue of SSL certificate.

the same here any sulotions plz

imo-hub commented 1 year ago

i am getting no network errors but the message is still not send and no issue of SSL certificate.

the same here any sulotions plz

First, you need to check, if you use laravel-debugbar for your project or not, If you use laravel-debugbar (LINK), just disabled or un-install it

But if your problem just like mine (not use laravel-debugbar) but use laravel-valet (LINK) so you need to add "cacert.pem" to your php

;;;;;;;;;;;;;;;;;;; ; php.ini Options ; ;;;;;;;;;;;;;;;;;;;

curl.cainfo="C:\php\extras\ssl\cacert.pem"

Hope it helps

jPrado131 commented 1 year ago

@imo-hub i'm encountering the same error but I;m not using laravel-valet and laravel-debugbar

imo-hub commented 1 year ago

@imo-hub i'm encountering the same error but I;m not using laravel-valet and laravel-debugbar

Just try the step above, put cacert.pem to your php and set php.ini.

Hope it helps

jPrado131 commented 1 year ago

@imo-hub Awesome ! that cacert.pem do the job . Thank you very much =)

imo-hub commented 1 year ago

@imo-hub Awesome ! that cacert.pem do the job . Thank you very much =)

No problem, nice to hear that 😊