Log in

View Full Version : FRC API


Ether
08-03-2016, 10:07
I have an FRC API Python script that I used (successfully) one year ago this month to retrieve some data.

Now when I run the script I get this error:

urllib2.URLError: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>

So I was wondering if there is an effective process in place for getting assistance with FRC API errors. A help desk if you will. Or a guru here on CD.

wazateer1
08-03-2016, 10:14
Have you changed the URL to reflect FIRST's URL change from usfirst.org to firstinspires.org?

Ether
08-03-2016, 11:30
Have you changed the URL to reflect FIRST's URL change from usfirst.org to firstinspires.org?

Yeah, that was it. Reps to you:)

Jon Stratis
08-03-2016, 11:37
Ether - I use the API to calculate the official rankings for the MN State Championship (at least, last year and this year). While I have it all set up in Java, if be happy to help if you run into any more issues. I know the domain change hit me earlier this year as well!

Also, there is the official teamforge page for the API - I don't know how often people check the discussion board there, but it could be another place to look for help.

Ether
08-03-2016, 11:43
happy to help if you run into any more issues.

Thanks Jon I will keep that in mind.

Logan Byers
08-03-2016, 11:50
According to their TeamForge (https://usfirst.collab.net/sf/sfmain/do/viewProject/projects.first_community_developers?_message=14573 82867059) page:
Tokens are removed if the account is inactive for over 6 months (0 requests), or has been banned for one month without contacting us. If your token disappears, just send us a message and we'll help you out.

plnyyanks
08-03-2016, 11:53
Here is a like to the apiary page that contains the full api docs (there were some updates for 2016):

http://docs.frcevents2.apiary.io/#

Ether
08-03-2016, 12:21
According to their TeamForge (https://usfirst.collab.net/sf/sfmain/do/viewProject/projects.first_community_developers?_message=14573 82867059) page:

Tokens are removed if the account is inactive for over 6 months (0 requests)

Thanks for pointing that out.

That's a very ill-conceived policy for something annual like FRC. It should be at least a year, if not 18 months.