Improvement #8303
openAPPM Publisher: 404 error on log when AFW isn't configured
0%
Description
From Gitlab
------------------------
gitlabId --> 304 https://gitlab.com/entgra/product-iots/-/issues/304
labels --> Type: Improvement,
assignees --> amnd1188,
created_at --> 2020-01-14 12:30:46 IST +0530
updated_at --> 2022-01-24 16:25:20 IST +0530
------------------------
- Description
This error is printing on the log on each page refresh when `Android For Work` isn't configured.
```
[2020-01-14 12:00:46,825] [IoT-Core] ERROR - {io.entgra.ui.request.interceptor.util.HandlerUtil} Received 404 response for http request : GET https://localhost:8243/api/device-mgt/android/v1.0/enterprise/store-url?approveApps=true&searchEnabled=true&isPrivateAppsEnabled=true&isWebAppEnabled=true&isOrganizeAppPageVisible=true&isManagedConfigEnabled=true&host=https://localhost:9443. Error message: {"message":"Not configured for AFW","errorItems":[]}
[2020-01-14 12:00:46,825] [IoT-Core] ERROR - {io.entgra.ui.request.interceptor.InvokerHandler} Error occurred while invoking the API endpoint.
```
- Affected Product Version:
v3.8.3
- OS, DB, other environment details and versions:
node v11.8.0 JDK 1.8.0_202 macOS 10.15 Chrome (79.0.3945)
- Steps to reproduce:
1. Login to the APPM Publisher
2. Refresh the page