XMiDT

/api/v3/notify in caduceus throwing 404 - page not found error

Hi, I build the xmidt using docker composer. I am able to successfully test the http restful call from webpa. Using the default simulator for testing. But when I try to post the events through cadueus through http://localhost:6000/api/v3/notify , i am getting 404-page not found error.

All other calls to http://localhost:6000 working fine . i.e heath check and get hook. Get hook returns empty string. Please help me to find out the problem

It probably has to do with this code:

Only if the content-type equals application/msgpack will the request be accepted. Otherwise I think you’ll get a 404 as you’re seeing.

Hi schmidtw, thanks … Sorry for the late reply. I have downloaded latest version of caduceus and build the container. After that registering hook worked fine. Get hook list responded with the information I passed for webhook.
After that as you suggested I have created msgpack bin file to test. But while testing the notify event, I am getting response as “message posted in queue”. But the event is not reflecting the Http Listener which I created. May I know is HTTP will work or I need to created HTTPS Listener?

How to check the message in the queue. I am using local goaws sns only(part of Docker build)

Getting below message when I post event

HTTP/1.1 202 Accepted
X-Caduceus-Build: development
X-Caduceus-Flavor: development
X-Caduceus-Region: local
X-Caduceus-Server: localhost
X-Caduceus-Start-Time: 07 Feb 20 10:29 UTC
Date: Mon, 10 Feb 2020 06:10:09 GMT
Content-Length: 28
Content-Type: text/plain; charset=utf-8

Request placed on to queue.