Closed JBlezi closed 3 months ago
Hi @JBlezi ,
Thanks for raising this issue. We are analyzing this issue and will get back to you with the analysis/fix.
Hi @JBlezi,
I tried to reproduce your issue but for me everything was working just fine. Here is the setup I used: MongoDiscoveryIssue.zip
I executed the following three requests via Postman to verify that it's working:
curl --location 'http://localhost:8084/lookup/shells/aHR0cHM6Ly9leGFtcGxlLmNvbS9pZHMvYWFzLzEyNzNfOTA5MF80MDQyXzQ5MTg' \
--header 'Content-Type: application/json' \
--data '[
{
"name": "globalAssetId",
"value": "https://example.com/ids/asset/1373_9090_4042_5900"
}
]'
curl --location 'http://localhost:8084/lookup/shells/aHR0cHM6Ly9leGFtcGxlLmNvbS9pZHMvYWFzLzEyNzNfOTA5MF80MDQyXzQ5MTg'
curl --location 'http://localhost:8084/lookup/shells?assetIds=eyJuYW1lIjoiZ2xvYmFsQXNzZXRJZCIsInZhbHVlIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9pZHMvYXNzZXQvMTM3M185MDkwXzQwNDJfNTkwMCJ9'
Every request returned the expected results. Since I don't know what exact request you send via Postman or what your exact BaSyx configuration looks like I would assume it's either a small mistake in the request you are sending or a configuration issue in BaSyx.
Hope this helps
Hi @aaronzi, thank you for your response. This is working for me as well now. I was using an older version of the endpoint (V3.0.1_SSP001). It works now that I am using V3.0.1_SSP002. Thank you!
Description: I am experiencing an issue with the discovery service, where the AAS Ids linked to specific Asset Identifiers are successfully stored in the MongoDB (checked with mongosh), but cannot be retrieved using the /lookup/shells endpoint. The result is always empty:
This issue is only apparent when using MongoDB, it works correctly when using InMemory. Also noteworthy is the fact that when using the /lookup/shells{aasIdentifier} endpoint it works correctly as well, both with InMemory and with MongoDB.
Steps to reproduce:
Configuration Files: 1. docker-compose.yaml:
2. application.properties
I have been trying around many different configurations, but nothing seemed to have any effect. Please let me know if my configuration is correct or if I need any additional configurations to resolve this problem?
Many thanks in advance!