DillonHammill / CytoExploreR

Interactive Cytometry Data Analysis
60 stars 13 forks source link

Installation fails due to 401 error bad credentials #208

Closed rwbaer closed 1 month ago

rwbaer commented 1 month ago

Briefly describe what you hope to achieve: I am trying to install the CytoExploreR package as i have many times before using the devtools::install_github("DillonHammill/CytoExploreR") command, but it fails, and it suggests that it has something to do with credentials.

This seems strange for a public repository anyway.

I tried to generate and use a PAT with the auth_token argument of install_github(), but I got essentially the same error.

Any idea what might have changed or why this is happening? I can log into my github account just fine from chrome. How might I work around this?

Outline the steps taken to attempt to reach this goal (paste code below):

Include any associated screenshots or images here:

sessionInfo() R version 4.4.1 (2024-06-14 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows 11 x64 (build 26120)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8

time zone: America/Chicago tzcode source: internal

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

loaded via a namespace (and not attached): [1] vctrs_0.6.5 cli_3.6.2 rlang_1.1.4 stringi_1.8.4
[5] purrr1.0.2 pkgload 1.3.4 promises_1.3.0 shiny_1.8.1.1
[9] xtable_1.8-4 glue_1.7.0 htmltools_0.5.8.1 httpuv_1.6.15
[13] pkgbuild_1.4.4 ellipsis_0.3.2 fastmap_1.2.0 lifecycle_1.0.4
[17] memoise_2.0.1 stringr_1.5.1 compiler_4.4.1 miniUI_0.1.1.1
[21] sessioninfo_1.2.2 fs_1.6.4 htmlwidgets_1.6.4 Rcpp_1.0.12
[25] urlchecker_1.0.1 rstudioapi_0.16.0 later_1.3.2 digest_0.6.35
[29] R6_2.5.1 curl_5.2.1 usethis_2.2.3 magrittr_2.0.3
[33] tools_4.4.1 mime_0.12 devtools_2.4.5 profvis_0.3.8
[37] remotes_2.5.0 cachem_1.1.0

usethis::git_sitrep()

── Git global (user) • Name: 'Rob Baer' • Email: 'rwbaer@gmail.com' • Global (user-level) gitignore file: 'C:/Users/rbaer/.gitignore' • Vaccinated: TRUE ℹ Defaulting to 'https' Git protocol • Default Git protocol: 'https' • Default initial branch name: 'master'

── GitHub user • Default GitHub host: 'https://github.com' • Personal access token for 'https://github.com': '' ✖ Can't get user information for this token. The token may no longer be valid or perhaps it lacks the 'user' scope. Error in gh(): ! GitHub API error (401): Bad credentials ℹ Read more at https://docs.github.com/rest

ℹ No active usethis project

rwbaer commented 1 month ago

I'm not sure what initiated this problem, but it was a git credential problem on my machine(s). By going into Windows Credential Manager https://support.microsoft.com/en-us/windows/accessing-credential-manager-1b5c916a-6a16-889f-8581-fc16e8165ac0 I found a credential entry for a GIT PAT and removed it. Installs now work like they used to for me.