Search code examples
autodesk-forgeautodesk-model-derivativeautodesk-bim360

Getting 404 Error While fetching MetaData of BIM360 Model using Forge SDK API


i am trying to get Model Strucuture data of BIM360 Model That we store, for that i'm using metadata api passing threelegged Token, model urn, model guid, but getting 404 (Not Found Error). i tried for get model that we store in our bucket that we are getting from this api, but that model we stored in BIM360 Accounts for that API is giving Error of NOT Found, i have passed all scope, backet:read, data:Read etc. couldn't getting result.

Thank you


Solution

  • It's a bit difficult to guess what's wrong with the limited information but generally, the 404 Not Found error would indicate that something in the URL (of the request made by the derivativesApi.getModelviewMetadata method call) is missing or wrong.

    I'd suggest to look at the following:

    • Could you take the URN, GUID, and access token, and make the request to the GET {urn}/metadata/{guid} endpoint directly using some 3rd party client application such as curl or postman?
      • If this returns 404, there might be some issue with the actual URN and/or GUID
      • If this works, there might be some issue in your code
    • What Forge SDK exactly are you using, and for what language? Is it one of the official SDKs, or is it a 3rd party one?
    • Are you sure you're passing in the right parameters to the derivativesApi.getModelviewMetadata method call?