# Help Troubleshooting KHTTP\_ERROR: 1,5

**URL:** <https://forum.sierrawireless.com/t/help-troubleshooting-khttp-error-1-5/18539>\
**Category:** IoT Modules\
**Created:** [December 3, 2019, 7:02am UTC](https://forum.sierrawireless.com/t/help-troubleshooting-khttp-error-1-5/18539 "2019-12-03T07:02:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timroadley](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/timroadley/32/4800_2.png) [@timroadley](https://forum.sierrawireless.com/u/timroadley)\
**Post date:** [December 3, 2019, 7:02am UTC](https://forum.sierrawireless.com/t/help-troubleshooting-khttp-error-1-5/18539/1 "2019-12-03T07:02:03Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forum.sierrawireless.com/u/Donald)\
**Post date:** [December 3, 2019, 8:50am UTC](https://forum.sierrawireless.com/t/help-troubleshooting-khttp-error-1-5/18539/2 "2019-12-03T08:50:05Z")

</div>

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](http://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](http://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](https://forum.sierrawireless.com/uploads/short-url/qzlvt3f8Q7i4kwcBi8EHSr6hNt4.txt) (10.9 KB)

---

<div class="post-metadata">

**Author:** ![timroadley](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/timroadley/32/4800_2.png) [@timroadley](https://forum.sierrawireless.com/u/timroadley)\
**Post date:** [December 5, 2019, 6:29am UTC](https://forum.sierrawireless.com/t/help-troubleshooting-khttp-error-1-5/18539/3 "2019-12-05T06:29:05Z")

</div>

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
