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

发送图片失败? #256

Open
fuli66 opened this issue Oct 28, 2024 · 1 comment
Open

发送图片失败? #256

fuli66 opened this issue Oct 28, 2024 · 1 comment

Comments

@fuli66
Copy link

fuli66 commented Oct 28, 2024

接口:http://localhost:3001/webhook/msg?token=xxxxxx

{"success":false,"message":"Message sent failed","error":{"generatedMessage":true,"code":"ERR_ASSERTION","actual":1205,"expected":0,"operator":"==","response":{"status":200,"statusText":"OK","headers":{"connection":"close","content-type":"text/plain","strict-transport-security":"max-age=31536000","content-length":"79"},"config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":60000,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/json","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","connection":"close","cookie":"pgv_pvi=68531591128405064; pgv_si=s41036212210069890; wxuin=2454402217; wxsid=kqPi7KRBrRONTxw6; wxloadtime=1730041153_expired; mm_lang=zh-CN; webwx_data_ticket=gSetg+AbzjlKN7NzeB8+RDkf; webwxuvid=d390ccb4351a6d48fcb7a07ebb88a40d096890a22c9b877f0074c6d30740e0ea5ee0799cce16958870ef88b873247c1e; webwx_auth_ticket=CIsBEOjo4e4PGoABMfdtlJGhQWmV5gCQ58bZx0Lfqra8ywXEZm2TI6ghAlgykFH1SWo9qc7jKmxCHucBXUyQgTexomc4pSraXaLeWXHZZLTctAFTCYdJAm1dTZJe6ZTqg6CrGZaAoZ5Vtk7VA0lqFu84yWEf1aLia3QkDC37sIvq8SwumPZQHlL5yK8=; wxpluginkey=1730068247","Content-Length":"969","Accept-Encoding":"gzip, compress, deflate, br"},"Cookie":{},"httpAgent":false,"httpsAgent":false,"method":"post","url":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsgimg","params":{"pass_ticket":"ZnRDval%2Bu8FbDFmyIk1M7okFz3mo2DmIARBhnvFY2XJiV0ckLB%2FUtr1JWOm0WAjF1Nr76NuMnemnRuudyt75ng%3D%3D","fun":"async","f":"json","lang":"zh_CN"},"data":"{\"BaseRequest\":{\"Uin\":2454402217,\"Sid\":\"kqPi7KRBrRONTxw6\",\"Skey\":\"@crypt_50b729a1_b3fe2682026ce8ca8fe2b4c0073490ce\",\"DeviceID\":\"e245784188451567\"},\"Scene\":0,\"Msg\":{\"Type\":3,\"MediaId\":\"@crypt_1d7578ff_699c2a2e6e50ba8eaf2b383206d997228052eba2cdacc53e1861813e7dae491194eb377c54fe40d6f75cf34077b5d67ae500c7a2a8464157b25d21d7385a11e12597784d7cc48898c37da5c9bebd6365dacf1a32adbb1271da33990cc657d0714f1f3d0403c7cab926f690a28c2315ed3135d88c74dadfdf3e892dbc40290d13e4a335b29a2731146ba26dd624347a2a7ab8af98ecd95a022878a1ce520be722ea0d9bd1be9be07dd8cb3e53148ddd9d23229fca598410bd6b930e51fee2f3b47e24afd822579968b6778544d38512d4d38cf97653ff681e11a0d71fcb834b71c3e05585840dae2bd1fdf1133609e4543eff40882d1b3f668330b76c34209ad287e5a00ff017c8cd27e6f627660898dd9d33ff446da12d73a680b3fb25e90736\",\"FromUserName\":\"@a8858a8f5930ec727ccd36389798b0ec65aeff6fb482015b4a157292495dbb0c\",\"ToUserName\":\"@ed1630e66f510258795a3f810112213b\",\"LocalID\":1730084682976000,\"ClientMsgId\":1730084682976000}}"},"data":{"BaseResponse":{"Ret":1205,"ErrMsg":""},"MsgID":"","LocalID":""}},"tips":"发送图片失败"}}

发送fileUrl也失败了

接口:http://localhost:3001/webhook/msg/v2?token=xxxxxx

{"success":false,"message":"All Messages (1) sent failed, look up data of task for more detail","task":{"successCount":0,"totalCount":1,"failedCount":1,"reject":[],"sentFailed":[{"to":"一只鱼","data":[{"type":"fileUrl","content":"https://download.samplelib.com/jpeg/sample-clouds-400x300.jpg?$alias=cloud.jpg"}]}],"notFound":[]}}

@fuli66
Copy link
Author

fuli66 commented Nov 1, 2024

{"success":false,"message":"Message sent failed","error":{"generatedMessage":true,"code":"ERR_ASSERTION","actual":1205,"expected":0,"operator":"==","response":{"status":200,"statusText":"OK","headers":{"connection":"close","content-type":"text/plain","strict-transport-security":"max-age=31536000","content-length":"79"},"config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":60000,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/json","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","connection":"close","cookie":"pgv_pvi=414002635181929900; pgv_si=s157474470656838900; wxuin=2454402217; wxsid=GYxoq09wNOMXIuKU; wxloadtime=1730272496_expired; mm_lang=zh-CN; webwx_data_ticket=gSfIS1Qg0GgxNRPTbElG5WE2; webwxuvid=d390ccb4351a6d48fcb7a07ebb88a40deea0fd40fe17e9b55fd6a243071b72100b414104a54d5497a3118586032c70e5; webwx_auth_ticket=CIsBEIr0pcQKGoAB2zrgy5fytX2y+gDBeqqpakLfqra8ywXEZm2TI6ghAlgfAQe5SOu9OagaiN3S/LXPveXGh+G2387UHmrHIwuc0jeknfOoGnRyXzp0hN5yGtTlGB+L/d6syE+rAvLR4A4Ppk6LdT0jNGLNfQv6zaqTJC37sIvq8SwumPZQHlL5yK8=; wxpluginkey=1730442637","Content-Length":"969","Accept-Encoding":"gzip, compress, deflate, br"},"Cookie":{"pgv_pvi":"352801427346278460","pgv_si":"s396804119176582660","wxuin":"2454402217","wxsid":"lBkmxzk52FviCTf/","wxloadtime":"1730172576","mm_lang":"zh-CN","webwx_data_ticket":"gSfrFkHjMaJuOnJLtx4ivDMZ","webwxuvid":"d390ccb4351a6d48fcb7a07ebb88a40deea0fd40fe17e9b55fd6a243071b72100b414104a54d5497a3118586032c70e5","webwx_auth_ticket":"CIsBEKzxqdsPGoABg3dF/eZHfD4JMvHOtl/6lULfqra8ywXEZm2TI6ghAlgfAQe5SOu9OagaiN3S/LXPveXGh+G2387UHmrHIwuc0jeknfOoGnRyXzp0hN5yGtTlGB+L/d6syE+rAvLR4A4Ppk6LdT0jNGLNfQv6zaqTJC37sIvq8SwumPZQHlL5yK8="},"httpAgent":false,"httpsAgent":false,"method":"post","url":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsgimg","params":{"pass_ticket":"AOwTcYvg%2BzWe9YYfkJgvKvyvPVWuLnVMmSKiCnC71ihqNjbDlddEgOwvXIJ%2BqX6bBt9p1UJlWLR6s4IBEZsBOA%3D%3D","fun":"async","f":"json","lang":"zh_CN"},"data":"{\"BaseRequest\":{\"Uin\":2454402217,\"Sid\":\"GYxoq09wNOMXIuKU\",\"Skey\":\"@crypt_50b729a1_9f45d9c5456a2c3490063ce68e507ec2\",\"DeviceID\":\"e047875676550119\"},\"Scene\":0,\"Msg\":{\"Type\":3,\"MediaId\":\"@crypt_aceae675_61378897d7a8232dc7f157bda0be6e09109ef801e730fc55d3cdf34bcbf0f43b08db549ef4c70e4a5dbed5a96b0208b0c901f35749293340a0cbb4674841b809101914787924dd4201e73596dd7e85f62992bae64e708fb1d64de21cc3658ca111997b79a3143765a988c142a3e7aca0579d69cd735dfadaafb025602d62aa3ca98bac6184a2cd0bf0f6c0a0858232e541b1512a75f47b0f3afa52e58e045d154ec2e7dddab1e3d9563e910634c981a7bb32b09780c85b47c846543fec4635d4b77d5c4df2bbafa7a551936b3e07125721088e704a67eb096b6ab622f3aa9f298b10169f3550798865d70374195a3f9ecffaa9150c2c98904a5060eb8f6753799ae4e51adf71ca51cf894911fad0f267115e4df0faef620c1651c9d1fe949fea\",\"FromUserName\":\"@c2d18ff892c6c1f824fd7cd57eec9e806e7600eee7aaa4b60156d3c832fa5e98\",\"ToUserName\":\"@8866268f226fab590fee4eea01c84e32\",\"LocalID\":1730445771286000,\"ClientMsgId\":1730445771286000}}"},"data":{"BaseResponse":{"Ret":1205,"ErrMsg":""},"MsgID":"","LocalID":""}},"tips":"发送图片失败"}}

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