Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 405 when sending text messages #470

Open
mateusfmello opened this issue Sep 27, 2023 · 0 comments
Open

Error 405 when sending text messages #470

mateusfmello opened this issue Sep 27, 2023 · 0 comments

Comments

@mateusfmello
Copy link

I'm using version v0.0.0-20230926223531-00abc29ba510 released yesterday but I'm still getting the 405 error.

The error doesn't say much, there's no clear message about what happened, just 405, in the HTTP status code it would be "Method Not Allowed", but I don't know if it has anything to do with that.

The log may be from the previous version of WhatsMeow, but after updating the error remained the same.

<iq id="174.85-31" to="s.whatsapp.net" type="get" xmlns="w:p"><ping/></iq>
<iq from="s.whatsapp.net" id="174.85-31" t="1695772589" type="result"/>
<iq id="174.85-33" to="s.whatsapp.net" type="get" xmlns="usync"><usync context="interactive" index="0" last="true" mode="query" sid="174.85-32"><query><business><verified_name/></business><contact/></query><list><user><contact>[email protected]</contact></user></list></usync></iq>
<iq from="s.whatsapp.net" id="174.85-33" type="result"><usync context="interactive" index="0" last="true" mode="query" sid="174.85-32"><result><business/><contact/></result><list><user jid="[email protected]"><contact type="in">[email protected]</contact></user></list></usync></iq>
<chatstate from="55xxxxxx8639:[email protected]" to="[email protected]"><composing/></chatstate>
<iq id="174.85-34" to="s.whatsapp.net" type="get" xmlns="w:p"><ping/></iq>
<iq from="s.whatsapp.net" id="174.85-34" t="1695772611" type="result"/>
<message id="3EB0E2DC9BDE2F43A8E5D3" to="[email protected]" type="text"><participants><to jid="[email protected]"><enc type="pkmsg" v="2"><!-- 442 bytes --></enc></to><to jid="[email protected]"><enc type="msg" v="2"><!-- 388 bytes --></enc></to><to jid="55xxxxxx8639:[email protected]"><enc type="msg" v="2"><!-- 389 bytes --></enc></to></participants><device-identity><!-- 182 bytes --></device-identity></message>
<ack class="message" error="405" from="[email protected]" id="3EB0E2DC9BDE2F43A8E5D3" t="1695772612"/>
Error: server returned error 405

My go.mod

go 1.20

require (
	github.com/golang-migrate/migrate/v4 v4.16.2
	github.com/gorilla/websocket v1.5.0
	github.com/hajimehoshi/go-mp3 v0.3.4
	github.com/joho/godotenv v1.5.1
	github.com/mattes/migrate v3.0.1+incompatible
	github.com/mattn/go-sqlite3 v1.14.17
	go.mau.fi/whatsmeow v0.0.0-20230926223531-00abc29ba510
	google.golang.org/protobuf v1.31.0
)

require (
	filippo.io/edwards25519 v1.0.0 // indirect
	github.com/dustin/go-humanize v1.0.1 // indirect
	github.com/google/uuid v1.3.1 // indirect
	github.com/hashicorp/errwrap v1.1.0 // indirect
	github.com/hashicorp/go-multierror v1.1.1 // indirect
	github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
	github.com/mattn/go-isatty v0.0.19 // indirect
	github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
	go.mau.fi/libsignal v0.1.0 // indirect
	go.mau.fi/util v0.1.0 // indirect
	go.uber.org/atomic v1.11.0 // indirect
	golang.org/x/crypto v0.13.0 // indirect
	golang.org/x/mod v0.12.0 // indirect
	golang.org/x/sys v0.12.0 // indirect
	golang.org/x/tools v0.13.0 // indirect
	lukechampine.com/uint128 v1.3.0 // indirect
	modernc.org/cc/v3 v3.41.0 // indirect
	modernc.org/ccgo/v3 v3.16.15 // indirect
	modernc.org/libc v1.24.1 // indirect
	modernc.org/mathutil v1.6.0 // indirect
	modernc.org/memory v1.7.2 // indirect
	modernc.org/opt v0.1.3 // indirect
	modernc.org/sqlite v1.25.0 // indirect
	modernc.org/strutil v1.2.0 // indirect
	modernc.org/token v1.1.0 // indirect
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant