Create encounter type

End point: /ws/rest/v1/encountertype

body :

{
  "name":"Minor surgery",
  "description":"Minor surgery"
}

Response: 500 Internal Server Error

Why the error with the following details??

{“cause”:{“cause”:{“cause”:{“cause”:null,“stackTrace”:[{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“createSQLException”,“fileName”:“SQLError.java”,“lineNumber”:120,“className”:“com.mysql.cj.jdbc.exceptions.SQLError”,“nativeMethod”:false},{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“createSQLException”,“fileName”:“SQLError.java”,“lineNumber”:97,“className”:“com.mysql.cj.jdbc.exceptions.SQLError”,“nativeMethod”:false},{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“translateException”,“fileName”:“SQLExceptionsMapping.java”,“lineNumber”:122,“className”:“com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping”,“nativeMethod”:false},{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“executeInternal”,“fileName”:“ClientPreparedStatement.java”,“lineNumber”:953,“className”:“com.mysql.cj.jdbc.ClientPreparedStatement”,“nativeMethod”:false},{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“executeQuery”,“fileName”:“ClientPreparedStatement.java”,“lineNumber”:1003,“className”:“com.mysql.cj.jdbc.ClientPreparedStatement”,“nativeMethod”:false},{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“executeQuery”,“fileName”:“NewProxyPreparedStatement.java”,“lineNumber”:1471,“className”:“com.mchange.v2.c3p0.impl.NewProxyPreparedStatement”,“nativeMethod”:false},{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“extract”,“fileName”:“ResultSetReturnImpl.java”,“lineNumber”:57,“className”:“org.hibernate.engine.jdbc.internal.ResultSetReturnImpl”,“nativeMethod”:false},{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“getResultSet”,“fileName”:“Loader.java”,“lineNumber”:2341,“className”:“org.hibernate.loader.Loader”,“nativeMethod”:false},{“classLoaderName”:null,“moduleName”:null,“moduleVersion”:null,“methodName”:“executeQueryStatement”,“fileName”:“Loader.java”,“lineNumber”:2094,“className”:“org.hibernate.loader.Loader”,“nativeMethod”:false}, … removed

Which version of the openmrs platform and webservices module are you running?

It is openmrs 2.4.0 but I do not know the version of the microservices.

https://wiki.openmrs.org/display/docs/Administering+Modules