dsp-api icon indicating copy to clipboard operation
dsp-api copied to clipboard

Exception thrown in v2/searchextended when key not found

Open subotic opened this issue 6 years ago • 2 comments

I've seen the following exception thrown and logged in the console:

[2019-03-10 13:47:12,200] ERROR - Main$(akka://webapi) - Unable to run route /v2/searchextended
api        | java.util.NoSuchElementException: key not found: http://www.knora.org/ontology/knora-base#standoffTagHasUUID
api        | 	at scala.collection.immutable.Map$Map4.apply(Map.scala:204)

This looks to me like the user has submitted something that the server doesn't like. If this is the case, then this should not be logged to the console.

subotic avatar Mar 18 '19 12:03 subotic

Can you paste the rest of the stack trace so I can see where in the Knora code this happens?

benjamingeer avatar Mar 18 '19 15:03 benjamingeer

It would also help a lot to have the Gravsearch query that triggers this.

benjamingeer avatar Mar 18 '19 15:03 benjamingeer