Closed dgermanwildlife closed 4 years ago
It won't even work in the browser, so maybe Vectronics is having issues with their API again. It was down recently and may be down again. I will keep testing the code, but everything seems to be working except for the timeout.
Maybe @ckochanny has some insight here?
A quick test to bypass the some of the code is to build the url and then copy and paste it into your browser. That will remove any flaws in our attempt to contact the API endpoint.
Example url below
https://wombat.vectronic-wildlife.com:9443/v2/collar/1000001/gps?collarkey=6484B8CA88E2B996421AB903D0B215AFAE285CAAE932F35F448154398398CF33AC40D37D9E37CEEA9DFCBD89353C3CCF8628A4DB4523F2324A83ADA5D091FB396DAC72773ED8CE1571D5C254FABBA0FBDEE2E1883694B8D18148168B205ED5BFA96ACEC30B7B99E045B8AE145B2A83948BAECD54CAB80A7676360B74CD1DEF7DDB50293E36B1C900EA853E19F808F745D85610F68609F233E294FA1C84700A80F1C257E062CAF4B2467E518A010A59E636091BAB905E50ED300BADF9F90440F7B85BBE14DD864BBB2F77A0A50BE5E14623D1B8FB0C2A3069207F4BFBF6CFEBC152F072D27B3CE88F844ED0197A56AF5114DE7B3BA544DB880850507FEB046684
@foresthayes is this working for you?
@Huh its not working for me either. I think it has been down for a couple weeks but haven't had time to troubleshoot so I am not positive.
Thanks for looking into this. Since I had no experience with this interface, I wasn’t sure if it was me or Vectronics. I will be patient (I guess).
Thanks Dave and Forest.
Their website kept crashing while I was looking at the documentation, which isn't the best sign.
I did email Chris K who has been responsive in the past about these issues.
I can't get a positive response from the API for a full url or any subset of the url, so I am guessing it is down.
> RCurl::url.exists("https://wombat.vectronicwildlife.com:9443")
[1] FALSE
> RCurl::url.exists("https://wombat.vectronicwildlife.com:9443/v2/collar/1000001/mor?collarkey=6484B8CA88E2B996421AB903D0B215AFAE285CA
+ AE932F35F448154398398CF33AC40D37D9E37CEEA9DFCBD89353C3CCF8628A4DB4523F2324A83A
+ DA5D091FB396DAC72773ED8CE1571D5C254FABBA0FBDEE2E1883694B8D18148168B205ED5BFA
+ 96ACEC30B7B99E045B8AE145B2A83948BAECD54CAB80A7676360B74CD1DEF7DDB50293E36B1C
+ 900EA853E19F808F745D85610F68609F233E294FA1C84700A80F1C257E062CAF4B2467E518A010A59
+ E636091BAB905E50ED300BADF9F90440F7B85BBE14DD864BBB2F77A0A50BE5E14623D1B8FB0C2
+ A3069207F4BFBF6CFEBC152F072D27B3CE88F844ED0197A56AF5114DE7B3BA544DB880850507FE
+ B046684>-id=112700")
[1] FALSE
Main website example for positive resonse
> RCurl::url.exists("https://vectronic-aerospace.com")
[1] TRUE
There are other ways to test this, but they all failed too.
Chris did respond and said he would text Tobias who is in charge of the API, etc. That is the end of the trail for now.
I am having this same issue. Just started to learn this package today
key_paths <- get_paths(
system.file(
"extdata",
package = "collar"
)
)
vec_dat <- fetch_vectronics(key_paths)
Downloading Vectronics collar data...
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached: [wombat.vectronic-wildlife.com:9443] Connection timed out after 10004 milliseconds
@ctlamb as far as I know the API is still down on their end. I did send another email inquiring about the state of the API and will post here if I get an update. Thanks for the note.
@ctlamb and @dgermanwildlife I just heard from Vectronics that the new API is functional. They changed the URL again, so I rebuilt the package and made everything point to the new URL.
Please let me know if you have any other problems.
Awesome, thanks so much for your support on this!
On Dec 21, 2019, at 1:16 PM, Josh Nowak notifications@github.com wrote:
@ctlamb https://github.com/ctlamb and @dgermanwildlife https://github.com/dgermanwildlife I just heard from Vectronics that the new API is functional. They changed the URL again, so I rebuilt the package and made everything point to the new URL.
Please let me know if you have any other problems.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Huh/collar/issues/55?email_source=notifications&email_token=AIGKXJKMS4JXICQULFAAYTTQZ2BULA5CNFSM4IWR3XY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHPDZCY#issuecomment-568212619, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGKXJL4JNH3V2FU7DR6IEDQZ2BULANCNFSM4IWR3XYQ.
-- Clayton Lamb, PhD Postdoctoral Fellow Canadian Mountain Network e: ctlamb@ualberta.ca p: 778-215-0334 t: @ClaytonTLamb w: www.lamb-eco-research.ca
I would like to use the Vectronics API to download data. I can't get even the simplest example to work. Code is below.
R> library(collar) R> key_paths <- get_paths( system.file( "extdata", package = "collar" ) ) R> vec_dat <- fetch_vectronics(key_paths) Downloading Vectronics collar data... Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: Connection timed out after 10000 milliseconds