401 Unauthorized Error Downloading State from API