-
Notifications
You must be signed in to change notification settings - Fork 23
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
user() giving me an error after the authentication #65
Comments
This error is caused by the if block at https://github.com/MRCIEU/ieugwasr/blob/master/R/query.R#L91-L96 not being checked for an error first like the if blocks above it within in the while loop. It also doesn't appear that the JWT stuff is fully implemented yet so it's not going to work anyway without changing this around The third issue is that we block the new API URL, but we'll deal with that internally. Once @explodecomputer is finished with the 1.0 release I'm sure this will all work fine, it looks like he's still in progress. |
In the latest commit the |
A quick note also to not share your token with others as it's essentially a password. You can reset the one posted above on the profile page. |
When I just followed the steps mentioned under the authentication step as mentioned below; Authentication
However, I am still getting the error as mentioned. |
Please confirm you are using the latest version (0.2.2-9003 at time of writing) and also note #65 (comment) |
0.2.2.9002 |
Detach and remove (you current) ieugwasr, then |
Thanks a lot! It is now resolved. |
Yes - always detach packages before updating them - or simpler still just restart (close and reopen) your R session. And remember you can install a prebuilt binary version for several different operating systems and architectures from https://mrcieu.r-universe.dev/builds For Windows and Mac users install.packages("ieugwasr", repos = c("https://mrcieu.r-universe.dev", "https://cran.r-project.org")) For Ubuntu Jammy Jellyfish users # Installation code for Ubuntu Jammy Jellyfish users running R in the Terminal
options(HTTPUserAgent = sprintf(
"R/%s R (%s)",
getRversion(),
paste(getRversion(),
R.version["platform"],
R.version["arch"],
R.version["os"])
))
install.packages(
'ieugwasr',
repos = c(
'https://mrcieu.r-universe.dev/bin/linux/jammy/4.3/',
'https://packagemanager.posit.co/cran/__linux__/jammy/latest',
'https://cloud.r-project.org'
)
) |
As mentioned in the documentation, I was able to generate the token from https://api.opengwas.io/profile/ and updated it in .Renviron. In addition, I was able to confirm the token with ieugwasr::get_opengwas_jwt(). However, user() function is giving an error. When I tried to fetch the data from the server, I am getting an error ..
The text was updated successfully, but these errors were encountered: