I've configured Maker API with the following post URL:
http : / / 192.168.x.x:yyyy/api/hub/event (spaces because I'm not allowed to include links)
I can do this successfully both in the Maker API app interface, as well as using the get endpoint with url encoding. I have a ASP dotnet server with this endpoint available, which I can call via post man.
[AllowAnonymous]
[Route("event")]
[HttpPost]
public async Task<ActionResult<EventResponse>> PostEvent([FromBody] HubEventModel request)
{
return Ok();
}
This endpoint receives an object HubEventModel which should map to all the properties of the posted json object.
public class HubEventModel
{
public string Name { get; set; }
public string Value { get; set; }
public string DisplayName { get; set; }
public string DeviceId { get; set; }
public string DescriptionText { get; set; }
public string Unit { get; set; }
public string Data { get; set; }
}
However, this api is never triggered (or possibly even called) by Maker API
When going to the device in hubitat interface it shows the event's triggered apps column that Maker API's eventHandler was triggered. With enabled logging for debugging enabled I see the device event log in Maker API's logs. However, I don't see any evidence that Maker API is sending out the post request, and my server certainly does not receive it. My network has no rules that would block this port and the server is certainly accessible through the port it is running on from any device on my network (it's not running on 80/443 because this is currently in debug mode through vs)
Are there any logs I can use to determine the source of the problem further? Has anyone ran into this issue before? Even if my app wasn't receiving the post because the body was incorrect I would see a failed request by the server (which I do not).
Thanks,