Trying to POST a set of events to /tracker, I get a 500 error:
{"httpStatus":"Internal Server Error","httpStatusCode":500,"status":"ERROR","message":"org.hisp.dhis.security.apikey.MethodAllowedList"}
A GET to /tracker/events works.
My token has POST allowed, so I’m not sure what’s going on here (and 405 would be a more correct error code anyway if the method isn’t supported). Is this a data validation error in disguise? Something else?
The response is 200 OK which means we’re using the endpoint correctly and POST method is allowed.
It’s either you need to update your version from 2.40.3 to the latest patch 2.40.6, or maybe recheck your token settings. You’re welcome to share the token configuration so I can test using the same Token configuration.
Hmm, thanks for checking. I don’t maintain the instance so not sure I’ll be able to get a patch upgrade done, but will check the release notes to see if anything seems relevant.