Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

100
Visualizações
Autodesk Forge Design Automation getEngines failing

I downloaded the sample project file provided by Autodesk Forge to implement Design Automation from here: https://github.com/Autodesk-Forge/learn.forge.designautomation/tree/nodejs

Issue: Getting Error in the DesignAutomation.js on the line code below. The error says 'Forbidden, Not authroized' although I had provided my forge app's token, key and the ngrok url.

let engines = await api.getEngines({ page: paginationToken });

I debugged and found that the above line of code is failing and going to the catch exception. Due to this error, I have the 'Select Engines' and 'Existing Activities' dropdown in the UI show up as empty.

Can someone help me with this issue? I'm new with Autodesk Forge and WebAPI, so I'm not able to figure out how to go about this. Thanks.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I think the problem is in the source code, but you can fix it.

The provided source code assumes that you will not change your nickname. If you don't change your nickname, it will default to your ClientID and the sample code uses this assumption. In the source code, line 57, you will see that:

    static get NickName () {
    return (config.credentials.client_id);
   }

it assumes that your nickname matches the client_id.

Check what is your current nickname by running in terminal (or Postman/Insomnia) the following:

curl 'https://developer.api.autodesk.com/da/us-east/v3/forgeapps/me' \
--header 'Authorization: Bearer '$TOKEN

If the provided result doesn't match your ClientId, you can be sure that this is the source of trouble.

In this case, to solve the problem, there are two approaches:

  1. Change the code of the NickName function (within the source code) to retrieve the nickname (using the above call), instead of just getting the ClientID.

  2. Reset your nickname, which actually means deleting the activities, bundles and all user stuff. The way to do it is by running:

curl --request DELETE 'https://developer.api.autodesk.com/da/us-east/v3/forgeapps/me'
--header 'Authorization: Bearer `$TOKEN​

This will reset your nickname to your ClientID and the code should work fine.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda