Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1820

HttpErrorResponse with "Unknown Error" on Android Device in Ionic-Angular Project

$
0
0

I'm working on an Ionic-Angular project and encountering an error when making an HTTP request using HttpClient to a secure endpoint (https://aaaaa.com/attendance/apiv1/attendance/adddailyattendance). The request works fine in the browser and on the Android emulator but throws an error on an Android device.

{"headers": {"normalizedNames": {},"lazyUpdate": null,"headers": {}  },"status": 0,"statusText": "Unknown Error","url": "https://aaaaa.com/attendance/apiv1/attendance/adddailyattendance?employeekey=1&lat=16&lon=96&officeKey=201&status=CheckIn","ok": false,"name": "HttpErrorResponse","message": "Http failure response for https://aaaaa.com/attendance/apiv1/attendance/adddailyattendance?employeekey=166296551112163819&lat=16&lon=96.1289445&officeKey=201&status=Checkin: 0 Unknown Error","error": {"isTrusted": true  }}

Why does this "Unknown Error" occur only on Android devices but not in the emulator or browser? Are there any additional configurations needed for handling HTTPS requests specifically on Android devices?

Any suggestions or help would be greatly appreciated!


Viewing all articles
Browse latest Browse all 1820

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>