I think this should be raise "#{response.inspect}" rather than raise "#{response.worklogs}" ?