pusher / chatkit-server-php

PHP SDK for Pusher Chatkit
https://pusher.com/chatkit
MIT License
35 stars 20 forks source link

chatkit getUsers method throw 500 server error when user not available #52

Closed hossammohammed72 closed 4 years ago

hossammohammed72 commented 5 years ago

I was trying to use the method $chatkit->getUsers(); to check if users existed or not. when users doen't exist it throws out 500 server error, I think it can just return an empty array that would be much better. you're doing a great work keep it up

jonathanlloyd commented 5 years ago

Hi! Thanks for the bug report - I can't seem to reproduce this with the latest version of the SDK (I get an empty array) - is this still an issue for you?

irvine48 commented 4 years ago

how to i process this message when user not available Throw error 404 "The requested user does not exist"

Chatkit \ Exceptions \ ChatkitException (404)
The requested user does not exist
jonathanlloyd commented 4 years ago

how to i process this message when user not available Throw error 404 "The requested user does not exist"

Chatkit \ Exceptions \ ChatkitException (404)
The requested user does not exist

Hey! Thanks for the feedback could you send more details about your use case to support@pusher.com? Thanks!

jonathanlloyd commented 4 years ago

Cannot reproduce in the latest version - closing