Open pstoehr opened 8 years ago
I just experienced the same issue. @hziak: where are we on this?
Seems to work now, but recommendation for "ageRange" 0 and 1 always return an empty result list no matter what keywords are used.
age range semantics: 0 - child 1- young adult 2 - adult
Currently there are no sources providing results for age range != 2
Adding the parameter "ageRange" : 2 to a working JSON-Query-Object leads to a crash of the PP-Server.
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
Endpoints for query: https://eexcess-dev.joanneum.at/eexcess-privacy-proxy-issuer-1.0-DEV-SNAPSHOT/issuer/recommend https://eexcess-dev.joanneum.at/eexcess-privacy-proxy-issuer-1.0-SNAPSHOT/issuer/recommend
JSON-Object: { "ageRange": 2, "numResults": 10, "contextKeywords": [ { "text": "Geburt" } ], "origin": { "clientType": "Swift-Test-Client", "clientVersion": "0.21", "module": "OS X Prototype", "userID": "PDPS-WS2015" } }
Working Swift-JSON-Object: let jsonObject : [String:AnyObject] = [ "origin":["clientType" : "Swift-Test-Client", "clientVersion" : "0.21", "module" : "OS X Prototype", "userID" : "PDPS-WS2015"], "numResults":10, "contextKeywords": [["text" : "(recommendation.stringValue)"]] ]
Swift-JSON-Object that crashes the server: let jsonObject : [String:AnyObject] = [ "origin":["clientType" : "Swift-Test-Client", "clientVersion" : "0.21", "module" : "OS X Prototype", "userID" : "PDPS-WS2015"], "numResults":10, "ageRange":2, "contextKeywords": [["text" : "(recommendation.stringValue)"]] ]