2 years ago

#40895

test-img

Clara

403 Unauthorized error to derivative service Autodesk Forge (Viewer not showing)

I am currently working on a project using the Autodesk Forge platform. I have been using the Viewer, Model Derivative, and Data Management APIs without any issues since yesterday that suddenly when I tried to open a model (uploaded weeks ago) and returned a 403 error on requests to view the model.

I did some research with Postman and I tried to do the same calls I'm doing in my app with the same credentials. The OAuth API and Data Management API seem to work correctly because they let me have access to the token and upload a model. The problem seems to be when I try to translate the uploaded model.

The call I'm using in Postman is: https://developer.api.autodesk.com/modelderivative/v2/designdata/job

And what Postman is returning is: 403 Unauthorized.

{
    "developerMessage": "The client_id specified does not have access to the api product",
"moreInfo":"https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/error_handling/",
"errorCode": "AUTH-001"
}

Something similar happens when I try to open a model in my app. The Request URL is the next one: https://developer.api.autodesk.com/derivativeservice/v2/manifest/{urn}?domain=http%3A%2F%2Flocalhost%3A8080

And the returned code is 403 Unauthorized. These are the headers in the call: Headers

The codebase hasn't changed in weeks and exhibits the same behavior leading me to believe it's a code change in the referenced Autodesk Forge libraries or a service issue on the derivative or viewer service.

I can upload cut-up code if required.

Thank you.

autodesk-forge

autodesk-viewer

autodesk-model-derivative

0 Answers

Your Answer

Accepted video resources