Script not giving data for navigating the website for second time

I am using following script to get the json data using rest API. While navigating again the data in json file is not correct or sometimes it doesn’t give the data at all.

Following URLs are encoded and I have tried using decoded URLs as well. Both produced same results. Could you please help me with this.

setEventName Target-PDP
setEventName Target-PDP-Soft