Autodesk forge testing official website case, the background reported an error

problem description

the first practice of forge, follows the official website http://learnforge.autodesk.io.. Java, is selected to run on eclipse, and all follow the steps on the official website. When entering http://localhost:3000, The errors in the background are as follows:
get buckets & objects exception: java.lang.RuntimeException: Expected 200 but got 400, with body {"developerMessage": "The required parameter (s) client_id,client_secret not present in the request", "userMessage": "", "errorCode": "AUTH-008", "more info": "http://developer.api.autodesk.com/documentation/v1/errors/AUTH-008"}
hope boss to solve, thank you.

Nov.11,2021

this error is due to the lack of APP Client ID and Secret, required to obtain the Authorization Token (authentication token) Please configure the Client ID and Secret: of the Forge application created according to the tutorial

public class config {
// set environment variables or hard-code here 
   public static class credentials{
      public static String client_id = System.getenv("FORGE_CLIENT_ID"); //APP Client ID
      public static String client_secret = System.getenv("FORGE_CLIENT_SECRET"); //APP Client Secret
   }; 

you can also configure environment variables "FORGE_CLIENT_ID" and "FORGE_CLIENT_SECRET". For more information, please see https://jingyan.baidu.com/art.

.
Menu