1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

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

Discussão em 'Angular' iniciado por Emerald, Outubro 10, 2024 às 00:22.

  1. Emerald

    Emerald Guest

    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!

    Continue reading...

Compartilhe esta Página