Search code examples
autodesk-forge

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.


Solution

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