Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in path_to_connection(): ! does not exist in current working directory #339

Closed
CameronCosgrove opened this issue Jul 5, 2024 · 8 comments · Fixed by #341
Closed

Comments

@CameronCosgrove
Copy link

My bcdata code has unexpectedly stopped working and no longer can download data from the BC data catalogue.

Running the example code provided in the package documentation throws an error in the path_to_connection() function.

Do you have any idea what is causing this behaviour? All my R and Rstudio options are default, and this code worked perfectly a few weeks ago.

Thanks for this package!

library(tidyverse)
library(bcdata)
library(terra)

bc_regional_districts_metadata <- bcdc_get_record("d1aff64e-dbfe-45a6-af97-582b7f6418b9")

my_regional_district <- bcdc_query_geodata(bc_regional_districts_metadata) %>%
  filter(ADMIN_AREA_NAME == "Capital Regional District") %>%
  collect()

Error in path_to_connection():
! does not exist in current working directory ('\SFP.IDIR.BCGOV/U109/CCOSGROV$').

@ateucher
Copy link
Collaborator

ateucher commented Jul 5, 2024

Thanks for reporting this! This was also reported in another issue (#335 (comment)), but will track it here since that was a separate problem.

I'll investigate, it may be a leftover hiccup from the outage that happened earlier.

@ateucher
Copy link
Collaborator

ateucher commented Jul 5, 2024

The issue is that the GetCapabilities request is returning a completely empty response: https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetCapabilities&version=2.0.0. We use this to determine the maximum number of records. We've had issues with this request endpoint before so I will add a workaround for when it fails, but will also open a ticket with the Mapping Services team.

@ateucher
Copy link
Collaborator

ateucher commented Jul 5, 2024

@CameronCosgrove would you like to try again with the development version? Install with:

remotes::install_github("bcgov/bcdata@dbplyr-2.5-fixes")

@CameronCosgrove
Copy link
Author

@ateucher Yes this works! Bcdata is a core package for lots of my processing so I am very appreciative of your rapid fix :)

The only change with this dev version is that I get a new message when I run bcdc_query_geodata()
Unable to access wfs record listing, using default download limit of 10000

But the data outputs look the same. Many thanks!

@ateucher
Copy link
Collaborator

ateucher commented Jul 7, 2024

Excellent, thanks for confirming! Yes that's the message indicating that it couldn't get information about the download limit size. I'll make the message a bit clearer...

@smnorris
Copy link

smnorris commented Jul 8, 2024

but will also open a ticket with the Mapping Services team.

Is there any way I can subscribe to this ticket? I'd prefer not to implement a similar workaround for python bcdata if this is going to be resolved short term.

@ateucher
Copy link
Collaborator

ateucher commented Jul 8, 2024

I can see if I can add you - but I just got a response saying it is now back up (as you noted). I also suggested they add it to uptime as per #340

@smnorris
Copy link

smnorris commented Jul 8, 2024

Don't worry about it, I created my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants