biodiversitydata-se / SBDI4R

R package to search and access data made available through the Swedish biodiversity data infrastructure SBDI
https://biodiversitydata-se.github.io/SBDI4R/
GNU Affero General Public License v3.0
1 stars 2 forks source link

"HTTP status code 404 received" with occurrences() #43

Open larswesterberg opened 3 years ago

larswesterberg commented 3 years ago

I can not download SBDI-data via the occurrences()-function. Other functions such as search_fulltext(), taxinfo_download() reach the servers but not occurrences(). Changing email dosen't work. The same error for several days and not possbible to check if the server is down at biodiversitydata.se.

occurrences(taxon="Callitriche cophocarpa", email="sbdi4r-test@biodiversitydata.se", download_reason_id=10) Caching https://logger.biodiversitydata.se/service/logger/reasons to file C:\Users\larwe75\AppData\Local\Temp\Rtmp0ycfIr/9661a42ce1390d5ae52c01eac576ad77 -> GET /service/logger/reasons HTTP/1.1 -> Host: logger.biodiversitydata.se -> User-Agent: SBDI4R 1.0.0 -> Accept-Encoding: deflate, gzip -> Accept: application/json, text/xml, application/xml, / -> <- HTTP/1.1 404 Not Found <- Server: nginx/1.21.1 <- Date: Wed, 11 Aug 2021 09:22:59 GMT <- Content-Length: 0 <- Connection: keep-alive <- Strict-Transport-Security: max-age=31536000 <- Referrer-Policy: strict-origin-when-cross-origin <- X-Content-Type-Options: nosniff <- Error in check_status_code(status_code, on_redirect = on_redirect, on_client_error = on_client_error, : HTTP status code 404 received. Either there was an error with your request or in the SBDI4R package, or the servers are down. If this problem persists please notify the SBDI4R maintainers by lodging an issue at SBDI4R github repo https://github.com/biodiversitydata-se/SBDI4R/issues

sbdi_config() $caching [1] "on" $cache_directory [1] "C:\Users\larwe\AppData\Local\Temp\Rtmp0ycfIr" $user_agent [1] "SBDI4R 1.0.0" $download_reason_id [1] 7 $verbose [1] FALSE $warn_on_empty [1] FALSE $text_encoding [1] "UTF-8" $email [1] "[removed]@liu.se"

DeboraArlt commented 3 years ago

I can only direct this to Manash as the one that can check the technical details. Manash is on parental leave until 21 Sept but hopefully can have a look at this as soon as possible after his return to office. @larswesterberg

larswesterberg commented 3 years ago

I have discovered that the error doesn't occur with VPN via liu.se. That is, occurrence() work well when I am connected to the university network.

DeboraArlt commented 3 years ago

ok. seems strange to me. must have to do with the CAS authetication, but it would make things easier if that would not require connection via VPN.