autodesk-forgeautodeskautodesk-designautomationautodesk-inventor

Autodesk Forge Configurator Inventor - Azure deployment problem


I have troubles with deploying an app to Azure.

I started with https://github.com/Autodesk-Forge/forge-configurator-inventor repo. I managed to run it locally with no errors. I am able to login, upload my own zipped files, change parameters, export pdf and download it. Everything is fine. Now i want to publish app to azure.

App is currently running so You can check it out: https://pjk-config.azurewebsites.net

WHAT IS WRONG: I cannot upload any models after login. No error is displayed. If I make change in wrench or wheel model and update it, I won't happened either.

What I did:

                   {
                       webBuilder.UseStartup<Startup>();
                       var port = Environment.GetEnvironmentVariable("PORT");
                       // If deployed to a service like Heroku, need to listen on port defined in the environment, not the default one
                       if (!string.IsNullOrEmpty(port))
                       {
                           webBuilder.UseUrls("http://*:" + port);
                           Log.Logger.Information($"PORT environment variable defined to:{port}");
                       }
                   });

appsettings:

    "CompletionCheck": "Callback",
    "CallbackUrlBase": "https://pjk-config.azurewebsites.net"

If you need any additional info just let me know. I am fighting with this almost 30 days by my own. I am beginner and this is my first question on this page so I apologize for lack of precise information about my problem. Just tell me what you need and I will send it over.


Solution

  • thank you for your effort and help. I figured out how to deploy to azure and be able to run without bugs. It was about callback. In my situation Callback URL at my apps>Autodesk Forge should be https://myapp.azurewebsites.net (no slash at the end) and in the appsettings.json i went with that:

    "Publisher": {
    "CompletionCheck": "Polling",
    "CallbackUrlBase": "https://myapp.azurewebsites.net/"
    

    Notice the slash at the end.

    Probably the next step will be changing CompletionCheck to Callback.

    App is running and I can work on inventor part.

    Thanks!