Unable to get video indexer language models

Mikhail Maksimenko 1 Reputation point
2021-06-18T21:16:02.863+00:00

Calling REST API "https://api.videoindexer.ai/westus2/Accounts/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx51a0/Customization/Language?accessToken=xxx".

Getting error: {
"ErrorType": "USER_NOT_ALLOWED",
"Message": "User has no permission on account '850c053b-148c-4309-b53e-1de5b21b51a0'. Trace id: '4da1226e-43b8-40fe-a9e9-cc5b5f1219f0"
}

Able to make other calls, like getting list of videos, get access token etc.

Any ideas?

Thanks.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,606 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. GiftA-MSFT 11,161 Reputation points
    2021-06-19T00:49:02.627+00:00

    Hi, it seems you're missing the modelID in your request. The request url should look like this:

    https://api.videoindexer.ai/{location}/Accounts/{accountId}/Customization/Language/{modelId}[?accessToken]
    
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Shubham Dubey 0 Reputation points
    2024-05-17T06:32:50.6+00:00

    I am calling get Streaming url api to play the video
    Request URL:

    https://api.videoindexer.ai/eastus2/Accounts/8a906cc7-2749-4645-9f69-53302a66b7e3/Videos/0685526059/streaming-url?eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJWZXJzaW9uIjoiMi4wLjAuMCIsIktleVZlcnNpb24iOiI1MTBhNTI4NTRiZjg0MDIwOTZhNDZjN2I0ZWY1NTE4OCIsIkFjY291bnRJZCI6IjhhOTA2Y2M3LTI3NDktNDY0NS05ZjY5LTUzMzAyYTY2YjdlMyIsIkFjY291bnRUeXBlIjoiQ2xhc3NpYyIsIlBlcm1pc3Npb24iOiJDb250cmlidXRvciIsIkV4dGVybmFsVXNlcklkIjoiM0U4REEwOTc1NUNFNDM4MUJGMDA3Q0FFQkJCREE0MUMiLCJVc2VyVHlwZSI6Ik1pY3Jvc29mdENvcnBBYWQiLCJJc3N1ZXJMb2NhdGlvbiI6ImVhc3R1czIiLCJuYmYiOjE3MTU5MjcxNDMsImV4cCI6MTcxNTkzMTA0MywiaXNzIjoiaHR0cHM6Ly9hcGkudmlkZW9pbmRleGVyLmFpLyIsImF1ZCI6Imh0dHBzOi8vYXBpLnZpZGVvaW5kZXhlci5haS8ifQ.IRW2ezjOeMeo_r70_sBqEgeNrNIPQsIRHnPr5Juz27T_bPP1pOso92nDLrhNUXSmQX14HyWt9XrE4lW51n2cLs-B1nnuL6rd9QCGbyYpWzvsr7kSGSeePb95Ysb52oap7yoWGr4MNjxacDrJ5sA5oQp--A7CYrpOyHDWXPLb5DA4-TO4t-o1ZJxN7OGLrY-f1FXnMJsjAPmsm1UiLkvxn2nUIwlZmXODUzubyj6lbHpADIZZ1QqBocCdyZMw5ESAKggubuZwcwEMctyT9_HZP7fXrwPaDILlYsVDGkAnq_qofm6-jVexbgkVmuwRmLifgjD_TF3XC2ZS2iV9e_FjjA

    response
    {

    "url": "https://api.videoindexer.ai/internals/eastus2/Accounts/8a906cc7-2749-4645-9f69-53302a66b7e3/Videos/0685526059/streaming-manifest/manifest.mpd",
    
    "jwt": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJWZXJzaW9uIjoiMi4wLjAuMCIsIktleVZlcnNpb24iOiI1MTBhNTI4NTRiZjg0MDIwOTZhNDZjN2I0ZWY1NTE4OCIsIkFjY291bnRJZCI6IjhhOTA2Y2M3LTI3NDktNDY0NS05ZjY5LTUzMzAyYTY2YjdlMyIsIkFjY291bnRUeXBlIjoiQ2xhc3NpYyIsIlZpZGVvSWQiOiIwNjg1NTI2MDU5IiwiUGVybWlzc2lvbiI6IlJlc3RyaWN0ZWRWaWV3ZXIiLCJFeHRlcm5hbFVzZXJJZCI6IjNFOERBMDk3NTVDRTQzODFCRjAwN0NBRUJCQkRBNDFDIiwiVXNlclR5cGUiOiJNaWNyb3NvZnRDb3JwQWFkIiwiSXNzdWVyTG9jYXRpb24iOiJlYXN0dXMyIiwibmJmIjoxNzE1OTI3MTY4LCJleHAiOjE3MTU5MzEwNjgsImlzcyI6Imh0dHBzOi8vYXBpLnZpZGVvaW5kZXhlci5haS8iLCJhdWQiOiJodHRwczovL2FwaS52aWRlb2luZGV4ZXIuYWkvIn0.vfgztolw8eoKzn1qZrQO9AC1lXUjoQOjs_07Lta2ngUnfgKB6-Gd4CkBeRhBUNNFotr1nKxBfIH4cmWVZ_xOZ2h1w05TrpGUbNCqZSHIdB66bhzz0Oq4SHHfJutWaqjaXKmJc6O1Y3MfqBL4enr2F9kzmH7OAl9Q1c095Rkx_CD-WNywSuWPznd6lt5LDrUiyNNyJgVoNB7AN6U3En6PrvqQbVJL2vLJIt2my8fsi7Okz2B-UyUAIXIajSMRt8RVR4bbCDvPOA7H_n3hm1u3CSH-1oosGKu5r9Usn4iPWScxVNPyeTZ6ml_r9xQNNNnOm9t_dmZpHZJG0yH7uI88eg"
    

    }

    while playing video with below url i am getting below error

    1. below is the error {

        "ErrorType": "USER_NOT_ALLOWED",

        "Message": "User has no permission on account '8a906cc7-2749-4645-9f69-53302a66b7e3'. Trace id: '8cbe35b7-8fa9-4d80-a5dc-9b45f8d533aa'."

    }

     

    1. <Error>

    <Code>AuthenticationFailed</Code>

    <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:aff44575-401e-0047-0584-a6af00000000 Time:2024-05-15T04:55:35.1248093Z</Message>

    <AuthenticationErrorDetail>Signature fields not well formed.</AuthenticationErrorDetail>

    </Error>

    can you please help me with that .

    0 comments No comments