Why i cant refresh my access token? "page not found"

ye i know i added because without i had the same result, ty anyway.
fixed the curl session wasnt closing in the loop!