Bad request error while converting model

Asma Rafi 1 Reputation point
2021-11-05T12:56:49.167+00:00

Hello guys,
I am new to Azure Mixed Reality Services and working on a tutorial for Object Anchor

Within this tutorial, we have to convert 3D model before using and for that I used this tutorial

The problem is I get conversion error with Bad request (400) and the details are given below:

Do you want to monitor an existing job? If so, type the job id. If not, just leave it blank and press Enter.  
Job Id:  
Asset   : C:\Users\dmadmin\Downloads\candle_in_a_glass\scene.gltf  
Gravity : <0, -1, 0>  
Unit    : Meters  
Attempting to upload asset...  
        Upload Uri: https://aoaprodstoreeu2.blob.core.windows.net/  
        Progress:  100.00%  
Asset uploaded  
Attempting to create asset conversion job...  
  
Your request failed:  
  
Service request failed.  
Status: 400 (Bad Request)  
  
Headers:  
Date: Fri, 05 Nov 2021 11:58:26 GMT  
Connection: keep-alive  
X-Content-Type-Options: REDACTED  
MS-CV: wo9YxxxxxQ.0  
Content-Length: 0  
  
  
C:\Usen\Debug\netcoreapp3.1\ConversionQuickstart.exe (process 11420) exited with code 1.  
Press any key to close this window . . .  

My Configuration.cs file looks as follows:

public class Configuration  
    {  
        // Azure Object Anchors account identifier  
        public string AccountId = "exxxxxxx";  
  
        // Azure Object Anchors account primary key  
        public string AccountKey = "5xxxxxxx";  
  
        // Azure Object Anchors account domain  
        public string AccountDomain = "xxxxazure.com";  
  
        // Path to 3D asset file on your local machine  
        public string InputAssetPath = "C:/Users/dmadmin/Downloads/candle_in_a_glass/scene.gltf";  
  
        // Timeout to wait for job completion  
        public TimeSpan WaitForJobCompletionTimeout = TimeSpan.FromMinutes(40);  
  
        // Gravity direction of 3D model  
        public Vector3 Gravity = new Vector3(0.0f, -1.0f, 0.0f);  
  
        // The unit of measurement of the 3D model  
        [JsonConverter(typeof(StringEnumConverter))]  
        public AssetLengthUnit AssetDimensionUnit = AssetLengthUnit.Meters;  
  
        [JsonIgnore]  
        public ILogger Logger = NullLogger.Instance;  
    }  

It is to be noted here that for "InputAssetPath" I have tried both backward and forward single and double backslashes but it didn't work either way. Your support in this regard will be really helpful.

Best regards,
Asma

Azure Object Anchors
Azure Object Anchors
An Azure mixed reality service that automatically aligns and anchors three-dimensional content to objects in the physical world.
18 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Craig Treasure 1 Reputation point
    2021-12-03T18:26:17.433+00:00

    Hey Asma. Sorry to hear you're having issues. The MS-CV you've posted appears to have had a portion of it redacted. That value would be useful to see if we can trace down why your request was rejected. Also, the account domain would be useful to help us narrow it down to a specific region.

    It looks like we could certainly do a better job surfacing details on errors like this, which I'll take a look at.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.