Replies: 2 comments 3 replies
|
Hi @sprice-HE , |
0 replies
|
Hi, I just tried to generate the PDF with the same output as sprice-HE. Error message: My code: IDEA Statica opens the file with connections and even the results, however, it doesn't try to generate the report. Another attempt to generate a Word report wasn't much better. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am using version 24.1.0.3009. I've gotten most of the python API functions to work. However, when I 'download' the connection file and close it via the API and open it in the GUI nothing has changed. None of the load effects added via the API are present. I thought maybe I could just run the calculation with the changes and generate a report, but report generation does not seem to work either. I tried both pdf and word. When the GUI opens I can see that the LoadEffects were added by the python api calls and the calculation seems to have happened, but then it exits the GUI without saving or generating a report and gives the following errors:
This is the output from the ConnectionRestApi.exe:
info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://localhost:5000/api/1/projects/a57fed52-4bd8-4a56-a5fe-055eedbeab26/reports/2/word - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'IdeaStatiCa.ConnectionRestApi.Controllers.ReportController.GenerateReport (IdeaStatiCa.ConnectionRestApi)' info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3] Route matched with {action = "GenerateReport", controller = "Report"}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] GenerateReport(System.Guid, Int32) on controller IdeaStatiCa.ConnectionRestApi.Controllers.ReportController (IdeaStatiCa.ConnectionRestApi).warn: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
No output formatter was found for content types 'application/octet-stream, application/octet-stream' to write the response.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
Executed action IdeaStatiCa.ConnectionRestApi.Controllers.ReportController.GenerateReport (IdeaStatiCa.ConnectionRestApi) in 27067.5227ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'IdeaStatiCa.ConnectionRestApi.Controllers.ReportController.GenerateReport (IdeaStatiCa.ConnectionRestApi)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost:5000/api/1/projects/a57fed52-4bd8-4a56-a5fe-055eedbeab26/reports/2/word - - - 406 0 - 27070.7806ms`
Has anyone encountered an issue saving the connection file via the API?
All reactions