14:14:31.797 [ERROR] i.g.c.s.LoopBlock$ - Condition evaluation crashed with message 'Can't cast value 463bd5f1-caee-47e0-beba-551e47c008d3 of type class java.lang.String into interface scala.collection.Seq', exiting loop
.exec(http("Get tickets")
.get("/tickets_updated?start=0")
.check(status.is(200))
.check(jsonPath("$.updated[*]").findAll.saveAs("updatedTickets")))
.foreach("${updatedTickets}","updatedTickets") {
exec(http("POST Tickets")
.post("/${eventId}/tickets")
.body(StringBody( """{"id":"${updatedTickets}"}""")).asJSON
.check(status.is(200)))
}
Updated tickets looks like this, I logged this out
updatedTickets -> Vector(463bd5f1-caee-47e0-beba-551e47c008d3, 7fecbdd6-865e-4244-84c6-e8b036474564, b3fe695a-0496-42e0-9117-f844bf904024,f61a66b1-fc23-4554-8619-d96282468833, b76725df-b7c3-4709-ab94-39eb5610b97f, 1e19963f-1ba2-4762-981f-b8b4a45a5f0b, 3b61da7c-98b4-431d-a511-d37567bcb451, 411272f5-4021-49e7-80b5-a697d08a090b, 1ccad1fd-81c2-4062-9d9c-803de8b12aef, e9233d64-9d50-448b-9b3c-d8b066f77a61)
How do I iterate through the vector in the POST tickets call?
Thanks!