Skip to content

error connecting to lotek site even with the sample password.- token supplied to the function is invalid #80

@dgermanwildlife

Description

@dgermanwildlife

Here is my sample code:

lotek_base_url <- "https://webservice.lotek.com"
usr = "demo", pwd = "PASSWORD09"
httr::POST(url = lotek_base_url, path = list("API", "user", "login"), body = list(grant_type = "password", username = usr, Password = pwd))

Here is the response I get.

Error in curl::curl_fetch_memory(url, handle = handle) :
schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid

Looking online it may have to do with the Open SSL or the WinSSL security layers but I'm stymied as to how to get past this.

I opened the source code and used the httr commands to isolate which routine(s) contained the error.

Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions