What calls are you actually doing.
Your code doesn’t make any sense. Not sure why references to cookies are in here.