Closed pstoehr closed 8 years ago
updated doc in https://github.com/EEXCESS/eexcess/wiki/%5Bcurrent%5D--Request-and-Response-format-for-call-to-federated-recommender-and-privacy-proxy (typo would still lead to a crash, but that seems reasonable, as this has to be found during development)
A typo in a key of a JSON-Object leads to crash of the server.
Example for incorrect JSON-Object that leads to a crash let jsonObject : [String:AnyObject] = [ "origin":["clientType" : "Swift-Test-Client", "clientVersion" : "0.21", "module" : "OS X Prototype", "userID" : "PDPS-WS2015"], "gender" : "male", "numresults":10, "contextKeywords": [["text" : "(recommendation.stringValue)"]] ]
"numresults" is a typo, "numResult" is the correct spelling for the key-word.
Endpoint: https://eexcess-dev.joanneum.at/eexcess-privacy-proxy-issuer-1.0-SNAPSHOT/issuer/recommend
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error that prevented it from fulfilling this request.
exception
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.
Apache Tomcat/7.0.47