Fixed bug when calling getCodeplex after a token timeout