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 ls_fetch_jpn #14

Open
kunstler opened this issue Apr 7, 2021 · 2 comments
Open

Error in ls_fetch_jpn #14

kunstler opened this issue Apr 7, 2021 · 2 comments

Comments

@kunstler
Copy link
Owner

kunstler commented Apr 7, 2021

res <- ls_fetch_jpn() do not return species_list, site_list nor tree_data (they are either empty or with html from the website.

I'm not sure how to fix this in

    con <- HttpClient$new(url = jpn_data,
      headers = list(`Content-Type` = "application/x-www-form-urlencoded"),
      opts = list(...))
    body <- list(username="janedoe", orgname="foobar",
      mailaddr="[email protected]", purpose="research", other_reason="x",
      data_id=data_id, docname=docname, lang="en")
    res <- con$post(body = body, encode = "form", disk = fpath)

Could be that the form to fill on this webpage changed

@sckott
Copy link
Collaborator

sckott commented May 3, 2021

I don't have time to debug this. Feel free to move to a different http package if you want. It would likely be in the body - that contains the names of the fields (E.g., username) which matches fields in the html source code for the web page.

@gowachin
Copy link
Collaborator

Issue is solved with 71ee382, this was caused by and url using http and not https.

Will be added to future pull-request

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

3 participants