CURL HTTPS returns the ERRNO 35(SSL CONNECT ERROR) ERROR
WeChat payments occasionally fail to get a prepay id.
WeChat pay will be asked to get prepay from WeChat server id (https://api.mch.weixin.qq.com/pay/unifiedorder). After we finished the development (the language is PHP, using WeChat’s payment SDK, and using curl to make requests), on the machine in the test environment, we found almost no failure of requests, but after we went online, we found frequent errors, with a probability of 1/5 or even higher. At the beginning, I did not delve into the reasons and tried again. However, I found that as long as I failed, I would fail again.
The curl error recorded is: errno:35, error: SSL Connect Error.
Search relevant information online, did not find a solution. Contact WeChat technical support, they have no Suggestions, think it is our problem, let us check by ourselves.
On our server, we captured packets by tcpdump: Tcpdump – I eth1 IP host 140.207.69.102-w wxpay.cap, comparing the successful and failed packets (using Wireshark analysis) :
failed packets:
failed packets:
Read More:
- error: RPC failed; curl 56 OpenSSL SSL_ read: SSL_ ERROR_ Syscall, errno 10054 solution
- How to Fix SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed.
- Mac installation dart error curl: (35) libresssl SSL_ connect: SSL_ ERROR_ SYSCALL in connection to storage.googleapis.co
- (20210301 solved) can’t connect to HTTPS URL because the SSL module is not available
- macOS Install Homebrew Error LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
- cURL error 35:error:140770FC:SSL routines:SSL_23_GET_SERVER_HELLO:unknown protocol
- curl https://domasin NSS error – 12286
- cURL error 60: SSL certificate problem…
- An error is reported when you open HTTPS with the following error code: SSL_ error_ ssl_ Disabled) (solved)
- OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- macos LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- Shell curl command reported an error: (60) SSL certificate problem: self signed certificate
- php mysqli_ connect_ Error () and mysqli_ connect_ The difference of errno() function
- Error in brew install: curl: (22) the requested URL returned error: 404 Not Found
- PHP function file_ get_ Contents() reports an error when using HTTPS protocol: SSL operation failed
- curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ig
- Error: RPC failed; HTTP 504 curl 22 the requested URL returned error: 504 gateway time out
- Girl: RPC failed; HTTP 411 curl 22 the requested URL returned error: 411 length required:
- Idea svn connection https error report: E230001: Server SSL certificate verification failed: certificate issued