FraunhoferISST / DataspaceConnector

This is an IDS Connector reference implementation.
https://www.isst.fraunhofer.de/de/geschaeftsfelder/datenwirtschaft/technologien/Dataspace-Connector.html
Apache License 2.0
103 stars 80 forks source link

Code 200 with Response Body ¨404 Not Found¨ #281

Closed aitorcelaya closed 3 years ago

aitorcelaya commented 3 years ago

I performed the /api/ids/connector/update call to register my connector at the IDS Broker. I installed the Broker locally in localhost. I tried registering the connector to my own Broker and I got a code 200 with a ¨404 Not Found¨ response body.

The expected behavior was the connector to register at the local Broker and then update resources.

Instead of getting a Code 404, obtained a Code 200 mentioning ¨404 Not Found¨

image

OS: Ubuntu Browser: Firefox Version: 88.0

tmberthold commented 3 years ago

From a purely formal technical point of view, the return 200 is fine here, though admittedly confusing in conjunction with a Broker-HTML Error-Page 404 as the Brokers response.

Likely solution: /browse is the frontend endpoint of the broker (requests frontend).

The endpoint required for IDS-Messages is /infrastructure.

Please try to send the IDS-Message on /infrastructure instead of /browse.

Description for /infrastructure: This endpoint serves as the main interaction point for onboarding and updating of metadata at the broker. Most probably the relevant messages are ConnectorAvailableMessage, ConnectorUnavailableMessage, ConnectorInactiveMessage, ConnectorUpdateMessage, ResourceAvailableMessage, ResourceUnavailableMessage, ResourceUpdateMessage.

In general, there is a good documentation of the endpoints of the open-core broker here: https://app.swaggerhub.com/apis/idsa/IDS-Broker/1.3.1

aitorcelaya commented 3 years ago

Thank you for the response however the issue still remains. Same Code 200 with a html 404 Not Found response

image

aitorcelaya commented 3 years ago

The issue is now fixed. Thank you for the assistance!