GithubHelp home page GithubHelp logo

Comments (7)

richanshah avatar richanshah commented on June 28, 2024

I CB-SDK: : onSendMessage error= ChatConnectionException: null ErrorPacket: {type: auth, code: 401, condition: Condition.not_authorized, text: You must authenticate session first, before you can send any message or presence packet.}

from connectycube-flutter-samples.

richanshah avatar richanshah commented on June 28, 2024
              I  CB-SDK: : onSendMessage error= ChatConnectionException: null ErrorPacket: {type: auth, code: 401, condition: Condition.not_authorized, text: You must authenticate session first, before you can send any message or presence packet.}
                                 I  CB-SDK: CubeChatConnection: Chat connection Closing
                                 I  CB-SDK: CubeChatConnection: Chat connection Closing
                                 I  CB-SDK: CubeChatConnection: Chat connection Closing
                                 I  CB-SDK: CubeChatConnection: Chat connection Closing
                                 I  CB-SDK: : [_initCubeChat] state CubeChatConnectionState.Closing
                                 I  CB-SDK: : [_initCubeChat] state CubeChatConnectionState.Closing
                                 I  CB-SDK: : [_initCubeChat] state CubeChatConnectionState.Closing
                                 I  CB-SDK: CubeChatConnection: Chat connection Closed
                                 I  CB-SDK: CubeChatConnection: Chat connection Closed
                                 I  CB-SDK: CubeChatConnection: Chat connection Closed
                                 I  CB-SDK: CubeChatConnection: Chat connection Closed
                                 I  CB-SDK: : [_initCubeChat] state CubeChatConnectionState.Closed
                                 I  CB-SDK: : [_initCubeChat] state CubeChatConnectionState.Closed
                                 I  CB-SDK: : [_initCubeChat] state CubeChatConnectionState.Closed
                                 I  showSoftInput(View,I)
                                 I  ssi() - flag : 0 view : com.bv.mainCourt reason = SHOW_SOFT_INPUT
                                 I  ssi() view is not EditText
                                 D  show(ime(), fromIme=true)
                                 I  showSoftInput(View,I)
                                 I  ssi() - flag : 0 view : com.bv.mainCourt reason = SHOW_SOFT_INPUT
                                 I  ssi() view is not EditText
                                 D  show(ime(), fromIme=true)
                                 I  ViewPostIme pointer 0
                                 I  ViewPostIme pointer 1
                                 I  CB-SDK: : onSendMessage message= {_id: 65116a023687295dbf716c72, chat_dialog_id: null, message: hi, date_sent: 1695640066, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null}
                                 I  CB-SDK: AsyncStanzaSender: add new task 65116a023687295dbf716c72
                                 I  CB-SDK: AsyncStanzaSender: start timer 65116a023687295dbf716c72
                                 I  CB-SDK: AsyncStanzaSender: unpause subscription
                                 I  CB-SDK: AsyncStanzaSender: responseStanza 651169953687295dbf716c71
                                 I  showSoftInput(View,I)
                                 I  ssi() - flag : 0 view : com.bv.mainCourt reason = SHOW_SOFT_INPUT
                                 I  ssi() view is not EditText
                                 D  show(ime(), fromIme=true)
                                 I  showSoftInput(View,I)
                                 I  ssi() - flag : 0 view : com.bv.mainCourt reason = SHOW_SOFT_INPUT
                                 I  ssi() view is not EditText
                                 D  show(ime(), fromIme=true)
                                 I  ViewPostIme pointer 0
                                 I  ViewPostIme pointer 1
                                 I  CB-SDK: : onSendMessage message= {_id: 65116a053687295dbf716c73, chat_dialog_id: null, message: gi, date_sent: 1695640069, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null}
                                 I  CB-SDK: AsyncStanzaSender: add new task 65116a053687295dbf716c73
                                 I  CB-SDK: AsyncStanzaSender: start timer 65116a053687295dbf716c73
                                 I  showSoftInput(View,I)
                                 I  ssi() - flag : 0 view : com.bv.mainCourt reason = SHOW_SOFT_INPUT
                                 I  ssi() view is not EditText
                                 D  show(ime(), fromIme=true)
                                 I  showSoftInput(View,I)
                                 I  ssi() - flag : 0 view : com.bv.mainCourt reason = SHOW_SOFT_INPUT
                                 I  ssi() view is not EditText
                                 D  show(ime(), fromIme=true)
                                 I  ViewPostIme pointer 0
                                 I  ViewPostIme pointer 1
                                 I  ViewPostIme pointer 0
                                 I  ViewPostIme pointer 1
                                 I  ViewPostIme pointer 0
                                 I  ViewPostIme pointer 1
                                 I  CB-SDK: : onSendMessage message= {_id: 65116a083687295dbf716c74, chat_dialog_id: null, message: gi, date_sent: 1695640072, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null}
                                 I  CB-SDK: AsyncStanzaSender: add new task 65116a083687295dbf716c74
                                 I  CB-SDK: AsyncStanzaSender: start timer 65116a083687295dbf716c74
                                 I  showSoftInput(View,I)
                                 I  ssi() - flag : 0 view : com.bv.mainCourt reason = SHOW_SOFT_INPUT
                                 I  ssi() view is not EditText
                                 D  show(ime(), fromIme=true)
                                 I  showSoftInput(View,I)
                                 I  ssi() - flag : 0 view : com.bv.mainCourt reason = SHOW_SOFT_INPUT
                                 I  ssi() view is not EditText
                                 D  show(ime(), fromIme=true)
                                 I  ViewPostIme pointer 0
                                 I  ViewPostIme pointer 1
                                 I  ViewPostIme pointer 0
                                 I  ViewPostIme pointer 1
                                 I  CB-SDK: : onSendMessage message= {_id: 65116a133687295dbf716c75, chat_dialog_id: null, message: hi, date_sent: 1695640083, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null}
                                 I  CB-SDK: AsyncStanzaSender: add new task 65116a133687295dbf716c75
                                 I  CB-SDK: AsyncStanzaSender: start timer 65116a133687295dbf716c75

from connectycube-flutter-samples.

richanshah avatar richanshah commented on June 28, 2024

onSendMessage error= ChatConnectionException: Connection timeout was occured durins end packe

from connectycube-flutter-samples.

richanshah avatar richanshah commented on June 28, 2024

even when connecting to new wifi i am getting this kind of message

onSendMessage message= {_id: 65116d223687295dbf716c77, chat_dialog_id: null, message: hi oi, date_sent: 1695640866, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null}

void onSendChatMessage(String content) {
if (content.trim() != '') {
final message = createCubeMsg();
message.body = content.trim();
onSendMessage(message);
} else {
showSnackBar(message: 'Nothing to send');
}
}

createCubeMsg not providing proper data

from connectycube-flutter-samples.

TatankaConCube avatar TatankaConCube commented on June 28, 2024

are you sure that you sent the message after successfully logging into the chat? from the provided log I can see some issues with the chat connection, it closes due to some reasons

from connectycube-flutter-samples.

richanshah avatar richanshah commented on June 28, 2024

yes i had login successfully, maybe in between my net was slow. but still it should not provide me proper error so that my user can get better idea or else provide me status code with error message so that i can show user some popup if issue is related to network.

but here even after switching to wifi i have tried to send a message , at that time cubemessage has not provided me right data as below

even when connecting to new wifi i am getting this kind of message

Logs : onSendMessage message= {_id: 65116d223687295dbf716c77, chat_dialog_id: null, message: hi oi, date_sent: 1695640866, sender_id: null, recipient_id: null, read_ids: null, delivered_ids: null, views_count: null, attachments: null, reactions: null, id: null, created_at: null, updated_at: null}

Logic : -
void onSendChatMessage(String content) {
if (content.trim() != '') {
final message = createCubeMsg();
message.body = content.trim();
onSendMessage(message);
} else {
showSnackBar(message: 'Nothing to send');
}
}

from connectycube-flutter-samples.

TatankaConCube avatar TatankaConCube commented on June 28, 2024

have you managed this issue? or do you still need our help?

from connectycube-flutter-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.