AWS - Storage Service Get Records service is not returning records
The query get records storage service (/api/storage/v2/query/records) is not returning manifest records.
Below is an example request that is failing:
curl --location --request POST 'https://r3m10.preshiptesting.osdu.aws/api/storage/v2/query/records' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer ...' \
--header 'Content-Type: application/json' \
--data-raw '{
"records": [
"osdu:master-data--Well:1000"
]
}'
The response to this request is shown below:
{
"records": [],
"invalidRecords": [
"osdu:master-data--Well:1000"
],
"retryRecords": []
}
Attempting to use the get single record request (/api/storage/v2/records/) also does not work.
curl --location --request GET 'https://r3m10.preshiptesting.osdu.aws/api/storage/v2/records/osdu:master-data--Well:1000' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer ...'
The response to this request is shown below:
{
"code": 404,
"reason": "Record not found",
"message": "The record 'osdu:master-data--Well:1000' was not found"
}
The following search request can be used to verify that record "osdu:master-data--Well:1000" is valid:
curl --location --request POST 'https://r3m10.preshiptesting.osdu.aws/api/search/v2/query' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer ...' \
--header 'Content-Type: application/json' \
--data-raw '{
"kind": "osdu:wks:*:1.0.0",
"query": "id:\"osdu:master-data--Well:1000\"",
"limit": 1000,
"offset": 0,
"returnedFields":["id"]
}'
The response to this request is shown below:
{
"results": [
{
"id": "osdu:master-data--Well:1000"
}
],
"aggregations": null,
"totalCount": 1
}