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

Searching photo from certain areas returns "Error in search_url(base_url = base_url) : object 'photo_xml' not found" #12

Open
katwynn opened this issue Jul 14, 2021 · 1 comment

Comments

@katwynn
Copy link

katwynn commented Jul 14, 2021

First of all, thank you for your support:

while searching for photo using code "test1", bounding box covering certain areas are returns error messages:

test1 <- photo_search(mindate_taken = "2011-01-01",
maxdate_taken = "2011-01-03",
bbox = "8.5806,47.5338, 10.4918, 49.7913",
has_geo = TRUE)

Result:

No encoding supplied: defaulting to UTF-8.
Error in search_url(base_url = base_url) : object 'photo_xml' not found
In addition: Warning messages:
1: In search_url(base_url = base_url) :
Status code:400 for https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=9ab0b35421325c3ea882df4da5415c13&text=&tags=&tag_mode=any&min_taken_date=1293807600&max_taken_date=1325372400&min_upload_date=1293807600&max_upload_date=1325372400&bbox=8.5806,47.5338, 10.4918, 49.7913&has_geo=TRUE&extras=date_taken,geo,tags,license,url_sq,url_t,url_s,url_q,url_m,url_n,url_z,url_c,url_l,url_o,count_views,count_comments,count_faves,date_upload,last_update,description&page=1&sort=date-taken-asc&format=rest - message:

400 Bad request


Your browser sent an invalid request.

2: In value[3L] :
https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=9ab0b35421325c3ea882df4da5415c13&text=&tags=&tag_mode=any&min_taken_date=1293807600&max_taken_date=1325372400&min_upload_date=1293807600&max_upload_date=1325372400&bbox=8.5806,47.5338, 10.4918, 49.7913&has_geo=TRUE&extras=date_taken,geo,tags,license,url_sq,url_t,url_s,url_q,url_m,url_n,url_z,url_c,url_l,url_o,count_views,count_comments,count_faves,date_upload,last_update,description&page=1&sort=date-taken-asc&format=rest skipped beacuse: Error in read_xml.response(r): Bad Request (HTTP 400).

Using code "test2" searching for photo from another location works fine and returns results:
test2 <- photo_search(mindate_taken = "2020-01-01",
maxdate_taken = "2020-01-03",
bbox = "13.0882,52.3418,13.7606,52.6697",
has_geo = TRUE)

> sessionInfo() R version 4.0.4 (2021-02-15) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252 LC_NUMERIC=C LC_TIME=German_Germany.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] sessioninfo_1.1.1 photosearcher_1.0

loaded via a namespace (and not attached):
[1] fansi_0.4.2 withr_2.4.2 crayon_1.4.1 utf8_1.2.1 dplyr_1.0.6 R6_2.5.0 lifecycle_1.0.0 magrittr_2.0.1 pillar_1.6.0 httr_1.4.2 cli_2.5.0
[12] rlang_0.4.10 curl_4.3.1 xml2_1.3.2 vctrs_0.3.7 generics_0.1.0 ellipsis_0.3.1 tools_4.0.4 glue_1.4.2 purrr_0.3.4 compiler_4.0.4 pkgconfig_2.0.3
[23] tidyselect_1.1.1 tibble_3.1.1

@katwynn katwynn changed the title certain area search responds "Error in search_url(base_url = base_url) : object 'photo_xml' not found" Searching photo from certain areas returns "Error in search_url(base_url = base_url) : object 'photo_xml' not found" Jul 14, 2021
@oldenfish
Copy link

Unfortunately I am having the exact same problem when searching for photos in Sweden. I'd appreciate anyone's help! Thanks.

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

No branches or pull requests

2 participants