dimaskiddo/go-whatsapp-rest

Error in Sending Message

Closed this issue · 3 comments

error processing data: received invalid data

The error above shows whenever I tried to send a message though, It's successful

Yups i think this is caused by not filtering a message that come from the current JID it's self, make sure to not read your own message in handler, and i still bypass this error in go-whatsapp-cli since it has a test mode, that make only listen and read from the same JID

May be you can try the echo example in go-whatsapp package, since this error message is related with the go-whatsapp handler

Opps. I see. Thanks mate! The error message came from the go-whatsapp handler itself.

link with this issue: Rhymen/go-whatsapp#125

I have used the stable commit version from Rhymen/go-whatsapp, and i think the issues still there or may be as i said before it's caused by the handler reading it's own sended data, since it's handling data reading from whatsapp server, you can check it in read.go file

So, can i close this issue or leave this as reference to Rhymen/go-whatsapp?
I think SchulteMK will try to fix or investigate this, since he refactor the readPump