asternic / wuzapi

Simple RESTful API for WhatsApp in Golang (using the Whatsmeow multi device library)
MIT License
105 stars 58 forks source link

[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x86bb3a] #3

Open punyahenry opened 1 year ago

punyahenry commented 1 year ago

2022-11-14T19:06:26+07:00 INF Message sent host=0.0.0.0 id=B228D74613E2DDD0F7958F738A72AE86 role=wuzapi timestamp="{0 63804024386 19609344}" 2022-11-14T19:06:26+07:00 INF Message delivered host=0.0.0.0 id=D7E05D5EE17DD2A15ED3E96F3405E0D9 role=wuzapi source=6288981500818@s.whatsapp.net timestamp="{0 63804024386 19609344}" 2022-11-14T19:06:26+07:00 WRN Skipping webhook. Not subscribed for this type host=0.0.0.0 role=wuzapi type=ReadReceipt 2022-11-14T19:06:26+07:00 INF Got API Request duration=774.648288 host=0.0.0.0 ip=172.17.12.185:37724 method=POST req_id=cdp2ugkon3mb6v6tj9l0 role=wuzapi size=134 status=200 url=/chat/send/text userid=1 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x86bb3a]

goroutine 83199 [running]: go.mau.fi/libsignal/state/record.(State).SenderChainKey(...) /home/cloud/go/pkg/mod/go.mau.fi/libsignal@v0.0.0-20220315232917-871a40435d3b/state/record/SessionState.go:297 go.mau.fi/libsignal/session.(Cipher).Encrypt(0xc0014599a8, {0xc000884000, 0xb2, 0x160}) /home/cloud/go/pkg/mod/go.mau.fi/libsignal@v0.0.0-20220315232917-871a40435d3b/session/SessionCipher.go:71 +0x7a go.mau.fi/whatsmeow.(Client).encryptMessageForDevice(0xc00069d000, {0xc000ccf1e0, 0xaf, 0xaf}, {{0xc000831880, 0xd}, 0x0, 0x0, {0xc62306, 0xe}, ...}, ...) /home/cloud/go/pkg/mod/go.mau.fi/whatsmeow@v0.0.0-20220412075936-8f75ccfd2425/send.go:362 +0x67d go.mau.fi/whatsmeow.(Client).handleRetryReceipt(0xc00069d000, 0xc000b43ea0, 0xc0011c78c0) /home/cloud/go/pkg/mod/go.mau.fi/whatsmeow@v0.0.0-20220412075936-8f75ccfd2425/retry.go:152 +0x125d go.mau.fi/whatsmeow.(Client).handleReceipt.func1() /home/cloud/go/pkg/mod/go.mau.fi/whatsmeow@v0.0.0-20220412075936-8f75ccfd2425/receipt.go:26 +0x33 created by go.mau.fi/whatsmeow.(Client).handleReceipt /home/cloud/go/pkg/mod/go.mau.fi/whatsmeow@v0.0.0-20220412075936-8f75ccfd2425/receipt.go:25 +0xca