Help Troubleshooting KHTTP_ERROR: 1,5

Hi Sierra!

I’ve hit a snag while preparing to do a HTTPS POST.

I’m getting a KHTTP_ERROR 5, which according to the manual means “HTTP connection error due to internal trouble”.

What steps would you try next to get past this hurdle?

Thanks in advance for your help!

Cheers

AT
OK


ATI
HL7800
OK


ATI3
BHL7800.3.4.1.0.20190425
OK

------------> COM PORT OK

AT+CPIN?
+CPIN: READY
OK

------------> SIM OK

AT+CGATT?
+CGATT: 1
OK

------------> GPRS OK

AT+KCGPADDR=?
+KCGPADDR: (1-2)
OK

------------> NETWORK OK

AT+CCLK?
+CCLK: "19/12/03,17:57:53+44"
OK

------------> TIME OK

AT+CMEE=1
OK


AT+CGATT=0


AT+KCNXCFG=1,"GPRS","telstra.wap"
OK


AT+KCNXUP=1
OK
+KCNX_IND: 1,4,1
+KCNX_IND: 1,1,0


AT+KCNXCFG?
+KCNXCFG: 1,"GPRS","telstra.wap","","","IPV4","0.0.0.0","0.0.0.0","0.0.0.0",2
OK

------------> CONNECTION OK
--------- Performing HTTPS POST ---------

AT+KHTTPCFG=1,"api.sandbox.ewaypayments.com",443,2
+KHTTPCFG: 1
OK
+KHTTP_ERROR: 1,5

Hi timroadley,

You are configuring http_version= 2 (HTTP 1.1 over TLS (HTTPS) in your log file.
To perform HTTPS TLS connection to api.sandbox.ewaypayments.com server, you need to configure TLS version and store CA, Client certificate, client key, consistent clock to module. These certificates, keys are matched with api.sandbox.ewaypayments.com server.

I can start HTTPS TLS1.2 successfully with an internal server at my side.
Please find the log file for your reference. PROTOCOM_TLS1.2HTTP.txt (10.9 KB)

Ah excellent. I’ve solved the problems with my https certificate so it loads properly before this call.

I’m getting a different error on a different command so will handle that in a new thread.

Cheers