Data Transfer to FastAPI Data Sink Demo Setup (Production environment) #1129
-
Issue: UI data transfer setup with FastAPI data sinkHello, I'm currently setting up a production environment demo using EDC-CE and Sovity Authority Portal, in the context of SM4RTENANCE project. The reverse proxy configuration for the required ports appears to be working correctly, as the Authority Portal shows a green light and I'm able to successfully negotiate contracts. To test data transfer, I’ve implemented a simple FastAPI-based data sink. Both the FastAPI service and the connector are running on a VM within our company network. The FastAPI application works as expected when tested from other machines on the local network using Postman. However, when I attempt a data transfer via the UI, the process appears to complete successfully, but the FastAPI server is never triggered. Additionally, neither the connector nor the UI container logs show any activity related to the transfer. As the endpoint for the data transfer, I'm simply providing the local endpoint in my POST request setup, for example: http://192.168.1.100:5000/upload assuming that, since both the connector and the FastAPI data sink are running on the same machine, this would be a valid reference. However, I’m starting to wonder if that assumption is incorrect. Could you help me understand whether this setup is valid, or if I should be using a different address or approach? Also, for the connector-data sink communication, no specific header or authentication is needed at the moment. ComponentsSovity EDC-CE v10.4.2 FastAPI request
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hello and thank you for opening this discussion 🚀 To identify whether it is due to the sink or source, you could use a demo sink known to work, e.g. a webhooksite as linked below, and see whether a GET call for the request to the data source arrives when initiating the transfer and later a POST call for posting the data to the sink. Both can be tried via the webhook site, then you just have 2 calls there in the history, once for the quasi source and once for the quasi sink. Link: https://webhook.site/ |
Beta Was this translation helpful? Give feedback.
-
Using a second connector with a custom data source resolved the issue. It appears the problem was due to an empty data source: while the data transfer initiated correctly, the sink wasn't triggered since there was no data to transmit. Thanks again for your support. |
Beta Was this translation helpful? Give feedback.
Using a second connector with a custom data source resolved the issue. It appears the problem was due to an empty data source: while the data transfer initiated correctly, the sink wasn't triggered since there was no data to transmit. Thanks again for your support.