I have a custom API page and all of the sudden I can't post to the URL in the sandbox. Using postman, I can do a get or patch to the URL but when I do a post I get the following error:
System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.\r\n at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)\r\n at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)\r\n at Microsoft.Dynamics.Nav.Runtime.NavHttpClient.<>c__DisplayClass48_0.<SendWithTelemetry>b__0(CancellationToken ct) in s:\\repo\\src\\Platform\\Server\\Prod.Ncl\\Runtime\\NavHttpClient.cs:line 332\r\n at Microsoft.Dynamics.Nav.Types.NavCancellationToken.RunActionWithCancellationToken[T](Func`2 func) in s:\\repo\\src\\Platform\\ClientServerShared\\Prod.Types\\Cancellation\\NavCancellationToken.cs:line 140\r\n at Microsoft.Dynamics.Nav.Runtime.NavHttpClient.SendWithTelemetry(HttpRequestMessage requestMessage, String endpoint) in s:\\repo\\src\\Platform\\Server\\Prod.Ncl\\Runtime\\NavHttpClient.cs:line 331\r\n at Microsoft.Dynamics.Nav.Runtime.NavHttpClient.<>c__DisplayClass47_0.<Send>b__1() in s:\\repo\\src\\Platform\\Server\\Prod.Ncl\\Runtime\\NavHttpClient.cs:line 315\r\n at Microsoft.Dynamics.Nav.Types.NavThread.<>c__DisplayClass44_0.<RunExternalAction>b__0() in s:\\repo\\src\\Platform\\ClientServerShared\\Prod.Types\\ThreadScheduling\\NavThread.cs:line 431\r\n at Microsoft.Dynamics.Nav.Types.NavThread.RunExternalAction[T](Func`1 action) in s:\\repo\\src\\Platform\\ClientServerShared\\Prod.Types\\ThreadScheduling\\NavThread.cs:line 470\r\n at Microsoft.Dynamics.Nav.Runtime.TrappableHttpOperationExecutor.<>c__DisplayClass0_0.<Execute>b__0() in s:\\repo\\src\\Platform\\Server\\Prod.Ncl\\Runtime\\TrappableHttpOperationExecutor.cs:line 31\r\n at Microsoft.Dynamics.Nav.Runtime.TrappableOperationExecutor.Execute(DataError errorLevel, Func`1 operation, Action`2 processNativeException) in s:\\repo\\src\\Platform\\Server\\Prod.Ncl\\Runtime\\TrappableOperationExecutor.cs:line 34 CorrelationId: a9e87557-3553-4c95-91e8-f6e902bfe747.
Any idea what would be causing this?
Thanks