Thanks for the help, i have found the solution with this topic: OH3: Error trying to retrieve historical data from influxdb
the problem is that openhab does not handle underscores correctly. so you are not allowed to use underscores in the bucket name with influxdb2.x. i have now recreated my bucket and now it works!
thanks again to @rossko57.
the command to debug was:
logInfo("test", "return state {}", results.state.toString())
logInfo("test", "return stamp {}", results.getTimestamp.toString())