Forum Topic - FRCAPI My AuthorizationKey is not working on the staging server: (6 Items)
   
FRCAPI My AuthorizationKey is not working on the staging server  
I'm only able to make requests to the production server right now and I don't want to be incessantly making requests 
there just to test my application. Wondering who I should contact specifically about the issue t=so that it can be 
resolved.
Re: FRCAPI My AuthorizationKey is not working on the staging server  
I'm having the exact same problem. I'm using the prod server sparingly right now, so hopefully this gets fixed soon so I
 can go back to staging.
Re: FRCAPI My AuthorizationKey is not working on the staging server  
Could you two clarify what exactly isn't working? Like without showing your token, what URLs/endpoints? I've been using 
staging and it has been working fine, including this morning, so I'm not sure how to investigate further. Though, making
 requests against Production isn't usually an issue, unless you end up "hammering" the server. But for basic testing/
troubleshooting, it's likely perfectly fine to use.

Thank you,
Re: FRCAPI My AuthorizationKey is not working on the staging server  
Here's my request code in Python 3:

year = input("Season Year: ")
eventcode = input("Event Code: ")
request = Request("https://frc-staging-api.firstinspires.org/v2.0/"+year+"/matches/"+eventcode, headers=headers)
response = urlopen(request).read()

This returns an error when I run the code, though.

urllib.error.HTTPError: HTTP Error 401: Unauthorized

I can still request data from the production server, though ("https://frc-api.firstinspires.org/"...), so I know my 
token is working.
Re: FRCAPI My AuthorizationKey is not working on the staging server  
Could you please just make the request in your browser, and see if it works in both methods? Like just type the URL into
 the browser bar, and it should prompt for authentication.
Re: FRCAPI My AuthorizationKey is not working on the staging server  
Yep, same results on browser. I managed to get into prod and saw the data (for /2017/matches/ILCH), but staging still 
denies me access.