AlexFielder
AlexFielder

Reputation: 137

the client_id specified does not have access to the api product

I have just followed the tutorial video here:

https://www.youtube.com/watch?v=QOm0dHgwvbM

And after starting a trial on a newly-activated Forge account, have I thought followed every step in the .NET instructions to the letter.

However, when I run the application, and attempt to upload a file, I receive the following error on the Console:

An unhandled exception has occurred while executing the request. Autodesk.Forge.Client.ApiException: Error calling GetManifest: { "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"}

Does anyone have any suggestions on how to remedy this?

Thanks,

Alex.

Upvotes: 0

Views: 1270

Answers (2)

AlexFielder
AlexFielder

Reputation: 137

So, it turns out my issue stemmed from having previously setup a FORGE_CLIENT_ID and FORGE_CLIENT_SECRET system variables on a previous, unsuccessful trial of Forge. This meant that the Visual Studio solution I created was reading those values instead of the ones I had input in code. Thanks to Cyrille Fauvel of Autodesk for helping me figure this out.

Cyrille says he is going to feed back to the rest of the Forge team that they ought to report back on the console the details of both ID and SECRET to prevent this happening in future.

Upvotes: 0

Eason Kang
Eason Kang

Reputation: 7070

Did you select the Model Derivative API while creating an app in https://forge.autodesk.com/myapps? If not, please go there, then edit the app, select Model Derivative API, and save the change. Afterward, restart your .NET app to fetch a new access token.

enter image description here

ref: https://petrbroz.github.io/forge-samples-docs/#provision-access-in-other-products

Upvotes: 0

Related Questions