Insights Hub Unable to access API Application assigned as API Dependencies getting CORS / 404 error.

2023-04-12T15:19:14Z
Developer Tools

Summary


Details

I have deployed a standard application on MindSphere with the application URL as below.

https://tenant-mysuperapp-tenant.eu1.mindsphere.io/

I also have API type application registered on MindSphere with the below URL.

https://gateway.eu1.mindsphere.io/api/mysuperapp-tenant/v1/

The endpoint on the API type application is

api/AlarmLists

When I'm trying to access the API endpoint in my UI application I'm getting a 404 error.

https://tenant-mysuperapp-tenant.eu1.mindsphere.io/api/AlarmLists

The above request returns a 404 error.

Solution

In general, a 404 error message is a HTTP standard response code when a page/file is not available.

Please use the API endpoint to call the API application, the URL will be picked from the browser context.

This is an API application URL.

https://gateway.eu1.mindsphere.io/api/mysuperapp-tenant/v1/

Using following URL you will get the response.

https://tenant-mysuperapp-tenant.eu1.mindsphere.io/api/mysuperapp-tenant/v1/api/AlarmLists

Notes

 For any questions or support in this matter, contact us through the support center.

Additional information can be found here: https://documentation.mindsphere.io/resources/html/developer-cockpit/en-US/132732141323.html

Notes

KB Article ID# PL8546561

Contents

SummaryDetails

Associated Components

Developer Cockpit