return 500 on error while fetching token