go to post Juuso Lepistö · Nov 15, 2021 So I added a parameter to the same file, where all my methods (post, get etc.) are located: HandleCorsRequest = 1; And changed: Set data = {}.%FromJSON(%request.Content) back to Set data = %request.Content Now my POST method suddenly works. I don't know how or why, but its works.
go to post Juuso Lepistö · Nov 6, 2021 Okay, so I figured out that I was missing a little more code from my POST -method Needed to change: Set data = %request.Content ==> Set data = {}.%FromJSON(%request.Content) This got me past my previous error and to the next one, which is as follows: "ERROR #5035: General exception Name 'READ error while reading input stream' Code '10' Data ''"
go to post Juuso Lepistö · Nov 4, 2021 Yes, I just figured that out by looking at my message queues. There was some random alert, which I aborted and Voila, I was able to stop the production. Thank you all for the help and responses.
go to post Juuso Lepistö · Nov 4, 2021 Thank you for the fast response. Sadly, after starting the production and stopping it I get the same message as I would in the management portal. AMK>DO ##CLASS(Ens.Director).StartProduction("AMKPKG.FoundationProduction") 22:33:24.884:Ens.Director: Production 'AMKPKG.FoundationProduction' starting...22:33:25.629:Ens.Director: Production 'AMKPKG.FoundationProduction' started.AMK>DO ##CLASS(Ens.Director).StopProduction() 22:33:32.486:Ens.Director: StopProduction initiated.22:33:32.513:Ens.Director: Queued messages are being saved in the suspended production.22:33:32.513:Ens.Director: Production 'AMKPKG.FoundationProduction' suspended. Why does it keep getting suspended and not stopping? Juuso