DWG to GeoJson Convert giving "400 Bad Request [No Body]" error intermittently

notescrew 51 Reputation points
2021-11-23T13:13:56.683+00:00

I am using Azure Maps API for DWG to GeoJson conversion. I works fine, but on some days intermittently I am getting 400 Bad Request [no body] error.

And once it's received it stays for more than a day and I am not able to do any conversion during that time. Even it stops working for the DWG files those used to work previousely.

Here are my logs:

https://eu.atlas.microsoft.com/mapData?&api-version=2.0&dataFormat=dwgzippackage&subscription-key=**********************  : **POST Method**
Headers : [Content-Type:"application/json", x-ms-azuremaps-region:"West Europe", X-Content-Type-Options:"nosniff", Strict-Transport-Security:"max-age=31536000; includeSubDomains", Operation-Location:"https://eu.atlas.microsoft.com/mapData/operations/d2cd52c1-d8b8-429f-8a77-5f2dd7e6d6b6?api-version=2.0", X-Cache:"CONFIG_NOCACHE", X-MSEdge-Ref:"Ref A: 8BA5E52459D143F98468E1CAD9ED934D Ref B: DEL01EDGE0515 Ref C: 2021-11-23T12:53:06Z", Date:"Tue, 23 Nov 2021 12:53:07 GMT", Content-Length:"0"]

URL : https://eu.atlas.microsoft.com/mapData/operations/d2cd52c1-d8b8-429f-8a77-5f2dd7e6d6b6?api-version=2.0&subscription-key=********************** : **GET Method**
Body : {"operationId":"d2cd52c1-d8b8-429f-8a77-5f2dd7e6d6b6","created":"2021-11-23T12:53:08.2644028+00:00","status":"Running"}
Headers : [Content-Length:"119", Content-Type:"application/json; charset=utf-8", Retry-After:"30", x-ms-azuremaps-region:"West Europe", X-Content-Type-Options:"nosniff", Strict-Transport-Security:"max-age=31536000; includeSubDomains", X-Cache:"CONFIG_NOCACHE", X-MSEdge-Ref:"Ref A: BABD1D4252C9471A90F144695AE8BDEF Ref B: DEL01EDGE0515 Ref C: 2021-11-23T12:53:08Z", Date:"Tue, 23 Nov 2021 12:53:08 GMT"] 

URL : https://eu.atlas.microsoft.com/mapData/operations/d2cd52c1-d8b8-429f-8a77-5f2dd7e6d6b6?api-version=2.0&subscription-key=********************** : **GET Method**
Body : {"operationId":"d2cd52c1-d8b8-429f-8a77-5f2dd7e6d6b6","created":"2021-11-23T12:53:08.2644028+00:00","status":"Succeeded"}
Headers : [Content-Length:"121", Content-Type:"application/json; charset=utf-8", x-ms-azuremaps-region:"West Europe", X-Content-Type-Options:"nosniff", Strict-Transport-Security:"max-age=31536000; includeSubDomains", Resource-Location:"https://eu.atlas.microsoft.com/mapData/metadata/a5e0bdf2-641e-a044-c954-d44f2d27b9a2?api-version=2.0", X-Cache:"CONFIG_NOCACHE", X-MSEdge-Ref:"Ref A: D17DCA39AC0F45EE8DFDEBAA32630810 Ref B: DEL01EDGE0515 Ref C: 2021-11-23T12:53:33Z", Date:"Tue, 23 Nov 2021 12:53:32 GMT"] : 


https://eu.atlas.microsoft.com/conversions?subscription-key=**********************&api-version=2.0&udid=a5e0bdf2-641e-a044-c954-d44f2d27b9a2&inputType=DWG&outputOntology=facility-2.0  :  **POST Method**

Failed async method processing : **********************************
org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: [no body]

While the same code and same DWG files start getting processed after some days.

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
839 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Brendan Co 746 Reputation points Microsoft Employee
    2021-11-24T07:18:22.033+00:00

    Hi @notescrew ,

    Thanks for the information. The LIST APIs will only show successfully completed operations, so if something is still running, you will need to log the operation Id to check on the status. Multiple conversions are allowed to run in parallel, however I believe there is currently a limit of 3 parallel conversions. There isn't a way to cancel a running operation at this time. Async calls that are throttled are currently return a 400 with no body (a bug), so I suspect that you may be experiencing that.

    Conversion operations complete relatively quickly (within a few minutes at most), so if you are seeing ones that don't complete please share the operation Ids of the conversions that don't complete.

    We will also continue investigating this on our end, however due to holidays, there may be a delay in response.

    Thanks

    1 person found this answer helpful.

  2. Brendan Co 746 Reputation points Microsoft Employee
    2021-12-03T17:41:09.547+00:00

    Hi @notescrew ,

    We took a look at the sample packages that you are referring to and it looks like it is 3D data which is not supported by Creator. Drawing requirements are specified here. Here is a tutorial which includes a sample package that is compliant. The conversion service should be aborting sooner with this unsupported package and we are still continuing that investigation.

    1 person found this answer helpful.

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.