Problem with add new user/new device

Nitish Khadaria6 years ago

i am new in traccar api, i have start sarver on my local system using eclipse IDE and changed traccar database to oracle with the help of config file and changelog.xml file. All table created on orcale database schema and i am also integrate web interface of traccar. After start the server i am trying to register new device using web interface then i have recived Invalid conversion requested - SQLException (... < QueryBuilder:485 < DataManager:458 < BaseObjectManager:90 < ...) but data insert into my database device table. if i will get list of device using command then show blank square brackets [] , command is (localhost:8082/api/devices).
i am also try add new device using command ((curl -X POST -H "Content-Type: application/json" -u admin:admin --data '{"name":"test1","uniqueId":"test1"}' http://127.0.0.1:8082/api/devices)) but device not add in database and return (Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 2]).. plz help me team. How i fixed this error.

Anton Tananaev6 years ago

You have to include all properties. Also, I would recommend to check what official web app sends for an examples of correct API requests.

Nitish Khadaria6 years ago

same issue :https://github.com/traccar/traccar/issues/2440
i try all solution but API is not working. I have same issue Invalid conversion requested - SQLException (... < QueryBuilder:485 < DataManager:458 < BaseObjectManager:90 < ...)..
I'll really appreciate it if anyone can help with this.

Nitish Khadaria6 years ago
Nitish Khadaria5 years ago

Now this issue is Fixed.
If any one want to configuration with Oracle then visit this link
https://github.com/traccar/traccar/issues/4453#issuecomment-605611672