Unable to translate Blob using Cognitive Services Translator
Avasilcai Adrian
25
Reputation points
Hi all,
I'm struggling for a while now to translate a given file (document) that resides in a Blob container.
Am of course using the Azure Cognitive Services to do the job but the problem seems to be that the service can't access the blob in question even if that url works just fine.
Input:
{
"inputs": [
{
"source": {
"sourceUrl": "https://<bla>.blob.core.windows.net/<bla bla>/ATS.pptx?<some SAS token>",
"language": "en"
},
"targets": [
{
"targetUrl": "https://<bla>.blob.core.windows.net/<bla bla>/fr_ATS.pptx?<some SAS token>",
"language": "fr"
}
]
}
]
}
Output:
"error": {
"code": "InvalidRequest",
"message": "Cannot access source document location with the current permissions.",
"target": "Operation",
"innerError": {
"code": "InvalidDocumentAccessLevel",
"message": "Cannot access source document location with the current permissions."
}
},
Additional important facts:
- the Cognitive Service is in a VNET
- tested with both having the Blob in the same VNET + Subnet with the Cognitive Service as well as with having the Blob accessible from anywhere
Any suggestion or thoughts are much appreciated!!
Cheers,
Adrian
Sign in to answer