Closed ganeshaskan closed 2 years ago
@ganeshaskan could you please provide a log of request and response data
This will help us find a root cause
Use this code snippet to get SDK logs https://developers.connectycube.com/reactnative/?id=configuration
Hi,
Here I attached the request and response as screenshot. It works previously but couple of days before only this login API its not working. In the screenshot login details I given is the valid one. But the response shows as "user not found". Kindly let me know is there any changes in API.
Please give as input to fix this
Please let us know 2 things:
HI @ganeshaskan maybe you have error in php Please try to use
'login='.$email;
or
"login=$email"; // double quotes
Hi,
I tried both you mentioned format but still I am getting same "user not found" error.
APP ID : 3496 login field I given teststudent100520211236@taylorrobinsonmusic.com
Thanks
can you please show final builded request with url,query params,headers,body maybe with curl-getinfo or other tools
Hi,
Below is the information I get when curl_getinfo used.
Thanks
try to use this
curl_setopt($ch, CURLOPT_URL, 'https://api.connectycube.com/users/by_login?login='.$email);
later we deploy changes and you can use
curl_setopt($ch, CURLOPT_POSTFIELDS, 'login='.$email);
@ganeshaskan we have applied a patch so it should work as before, please check
Hi,
Now by_login API is working fine. Thank you so much.
Please let us know is there any changes on the API (https://api.connectycube.com/chat/Message). This also worked previously but now not working. We are sending chat messages by using this API. chat_dialog_id, recipient_id and message parameters are sending properly. But chat not received. Below is the code we used works earlier.
We got the error message as "max validation failed on message"
Kindly let us know any changes on this API.
$arr = array("chat_dialog_id"=>$chat_dialog_id,"message"=>$message,"recipient_id"=>$recipient_id); $json = json_encode($arr); curl_setopt($ch, CURLOPT_URL, 'https://api.connectycube.com/chat/Message'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); //curl_setopt($ch, CURLOPT_POSTFIELDS, $json); curl_setopt($ch, CURLOPT_POSTFIELDS, $json); $headers = array(); $headers[] = 'Content-Type: application/json'; $headers[] = 'CB-Token: '.$token; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result_chat = curl_exec($ch);
Thanks
@banshiAnton please check as well
@ganeshaskan we have max:4000 validation for message field. What string you send?
Hi,
We sent chat message early having more number of characters. Please let me know why restrictions happens now. Is Possible to increase message chars.
Thanks
@ganeshaskan there must be some limit anyway at server side. What max length are you sending?
Hi,
We are sending messages as html content. So it should be more than 4000 chars. Previously all contents looks good. But, due to char restriction messages not received now. How to overcome this. Kindly let me know
Thanks
@ganeshaskan will 8K will be ok?
Hi,
Yes please change it and let me know. We will check
Thanks
We set it to 8K please check
Closed due to inactivity. Please create a new issue if needed.
Hi,
I am using the API URL ( https://api.connectycube.com/users/by_login) to get user details. It is working fine until a day before. But right I am getting "User not found" error message. Please let me know is there any changes on API. How to resolve this issue.
Thanks