Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sabrehagen opened this issue Dec 19, 2016 · 4 comments
Open

Comments

@sabrehagen
Copy link

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
Copy link
Author

Any word @cyrillef?

@cyrillef
Copy link
Owner

cyrillef commented Mar 9, 2017

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

@sabrehagen
Copy link
Author

Did you find a solution @cyrillef?

@cyrillef
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants