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

248
Visualizações
Autodesk Design Automation "Value cannot be null. (Parameter 'ForgeConfiguration.ClientId')"

I´ve downloaded the Forge Design Automation sample from the following link:

https://learnforge.autodesk.io/#/tutorials/modifymodels

But the downloable code example is not working fine. When any async method who involves the DesignAutomation API is called I get -> Value cannot be null. (Parameter 'ForgeConfiguration.ClientId'). So, I would like to know how it works and how I can set the ClientId in the ForgeConfiguration class or else if I making something else wrong. I attach a fragment of code where I get the error.

 [HttpGet]
 [Route("api/forge/designautomation/engines")]
 public async Task<List<string>> GetAvailableEngines()
    {
       
        List<string> allEngines = new List<string>();
        try
        {
            dynamic oauth = await OAuthController.GetInternalAsync();

            // define Engines API
            string paginationToken = null;
            while (true)
            {
                Page<string> engines = await _designAutomation.GetEnginesAsync(paginationToken);
                allEngines.AddRange(engines.Data);
                if (engines.PaginationToken == null)
                    break;
                paginationToken = engines.PaginationToken;
            }
            allEngines.Sort();
        }
        catch (Exception error) {
            throw error;
        }
       
        return allEngines; // return list of engines
    }

And the call of the method:

function prepareLists() {
    
    list('engines', 'api/forge/designautomation/engines');
   
}
function list(control, endpoint) {
$('#' + control).find('option').remove().end();
jQuery.ajax({
    url: endpoint,
    success: function (list) {
        if (list.length === 0)
            $('#' + control).append($('<option>', { disabled: true, text: 'Nothing found' }));
        else
            list.forEach(function (item) { $('#' + control).append($('<option>', { value: item, text: item })); })
    }
});

}

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

0

Did you forget to set the Forge App Keys in the Environment Variables of your project, check the page at https://learnforge.autodesk.io/#/environment/setup/netcore_da

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