extract.autodesk.io icon indicating copy to clipboard operation
extract.autodesk.io copied to clipboard

Different Bubble when calling derivativeservice/v2/manifest/:urn

Open sabrehagen opened this issue 8 years ago • 4 comments

Hi,

Sometimes the downloaded zips do not have all files in them, only the xref/designDescription.json file is in the zip, not the 0 folder with the scene.

I believe it is happening because of different results returned from the /derivativeservice/v2/manifest/:urn api. For example, I call /derivativeservice/v2/manifest/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ and get:

{ guid: 'dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ',
  owner: 'dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ=',
  type: 'design',
  hasThumbnail: 'false',
  startedAt: 'Mon Dec 19 00:11:05 UTC 2016',
  urn: 'dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ',
  region: 'US',
  status: 'success',
  progress: 'complete',
  success: '100%',
  children: 
   [ { guid: 'aa85aad6-c480-4a35-9cbf-4cf5994a25ba',
       name: 'd2uddpvm9os908ie0k34k7qfr.ipt',
       success: '100%',
       hasThumbnail: 'false',
       role: 'viewable',
       version: '2.0',
       urn: 'dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ',
       status: 'success',
       assetCount: 29,
       type: 'folder',
       progress: 'complete',
       children: 
        [ { guid: '3b81724e-5543-4ff8-aeb7-9d74588f38a9',
            type: 'resource',
            role: 'Autodesk.CloudPlatform.DesignDescription',
            urn: 'urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ/output/xref/designDescription.json',
            mime: 'application/json' } ] } ] }

This shows all translations have completed with result success. My application then proceeds to download the files listed in the manifest on the basis that all nodes in the manifest show successful translation. However, calling /derivativeservice/v2/manifest/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ again 10 seconds later returns a different result with more information. I get:

{ guid: 'dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ',
  owner: 'dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ=',
  type: 'design',
  hasThumbnail: 'true',
  startedAt: 'Mon Dec 19 00:11:05 UTC 2016',
  urn: 'dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ',
  region: 'US',
  status: 'success',
  progress: 'complete',
  success: '100%',
  children: 
   [ { guid: 'aa85aad6-c480-4a35-9cbf-4cf5994a25ba',
       name: 'd2uddpvm9os908ie0k34k7qfr.ipt',
       success: '100%',
       hasThumbnail: 'true',
       role: 'viewable',
       version: '2.0',
       urn: 'dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ',
       status: 'success',
       assetCount: 29,
       type: 'folder',
       progress: 'complete',
       children: 
        [ { guid: '3b81724e-5543-4ff8-aeb7-9d74588f38a9',
            type: 'resource',
            role: 'Autodesk.CloudPlatform.DesignDescription',
            urn: 'urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ/output/xref/designDescription.json',
            mime: 'application/json' },
          { guid: '8615e0f8-2ff4-4f94-9baa-cb2541744b02',
            type: 'folder',
            name: 'Scenes',
            status: 'success',
            progress: 'complete',
            success: '100%',
            hasThumbnail: 'true',
            children: 
             [ { guid: '9d76bf67-0622-4df7-a960-20ba448ab5e6',
                 type: 'geometry',
                 role: '3d',
                 name: 'Scene',
                 status: 'success',
                 progress: 'complete',
                 size: 201544,
                 success: '100%',
                 hasThumbnail: 'true',
                 children: 
                  [ { guid: 'bb1388e5-3961-4b5b-980a-0d4f13c31d11',
                      type: 'resource',
                      urn: 'urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ/output/1/d2uddpvm9os908ie0k34k7qfr.svf',
                      role: 'graphics',
                      mime: 'application/autodesk-svf',
                      size: 119274 } ] },
               { guid: '31bd9eff-10b0-4763-9e78-f8bc2bdb6b12',
                 type: 'resource',
                 urn: 'urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RlbW4vZDJ1ZGRwdm05b3M5MDhpZTBrMzRrN3Fmci5pcHQ/output/1/properties.db',
                 role: 'Autodesk.CloudPlatform.PropertyDatabase',
                 mime: 'application/autodesk-db',
                 status: 'success',
                 size: 24576 } ] } ] } ] }

This response contains the information required to download the scene. Can you advise a way of getting a consistent response from the /derivativeservice/v2/manifest/:urn api so that my application does not download incomplete zips?

sabrehagen avatar Dec 19 '16 00:12 sabrehagen

Any word @cyrillef?

sabrehagen avatar Jan 03 '17 05:01 sabrehagen

Hi, I'll take a look right now - sorry for delay

cyrillef avatar Mar 09 '17 11:03 cyrillef

Did you find a solution @cyrillef?

sabrehagen avatar Mar 15 '17 02:03 sabrehagen

@sabrehagen - is it still an issue, I update the sample a minute ago, and do not have this issue. If you got a sample to share that would be great to track the issue you got.

cyrillef avatar Dec 11 '17 19:12 cyrillef