JuliaComputing / JuliaHub-Feedback

Public repo for filing JuliaHub issues
6 stars 1 forks source link

bogus "not a member of" error message when attempting to register update on gitlab #145

Closed ExpandingMan closed 2 years ago

ExpandingMan commented 2 years ago

I am attempting to register a patch for my package Parquet2.jl via https://juliahub.com/ui/Registrator and am getting a bizarre error message:

User Nishanth H Kottary is not a member of project Parquet2.jl

I have no idea who this user is, there is no reference to this person in my repo.

Note that I am signed into juliahub via gitlab. Juliahub does correctly identify me and does not offer any clues as to this bizarre error.

Not sure if this is an issue with juliahub or registrator... this is normally how I register updates, I haven't yet figured out how else to do it with gitlab.

aviks commented 2 years ago

A new release has caused a regression here, sorry. We're looking into it, should have a fix soon.

pfitzseb commented 2 years ago

We've deployed a fix for this. Sorry for the inconvenience.

ExpandingMan commented 2 years ago

I'm still getting some kind of error here:

Could not fetch associated github account, GitForge.HTTPError{HTTP.ExceptionRequest.StatusError}(HTTP.Messages.Response: """ HTTP/1.1 401 Unauthorized date: Wed, 13 Jul 2022 18:19:21 GMT content-type: application/json content-length: 118 cache-control: no-cache vary: Origin www-authenticate: Bearer realm="Protected by OAuth 2.0", error="invalid_token", error_description="Token is expired. You can either do re-authorization or token refresh." x-request-id: 01G7WCJXPK937S2DN83FTRHYWB x-runtime: 0.025874 strict-transport-security: max-age=31536000 referrer-policy: strict-origin-when-cross-origin ratelimit-observed: 2 ratelimit-remaining: 1998 ratelimit-reset: 1657736421 ratelimit-resettime: Wed, 13 Jul 2022 18:20:21 GMT ratelimit-limit: 2000 gitlab-lb: fe-08-lb-gprd gitlab-sv: localhost cf-cache-status: DYNAMIC expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=8RYN575p6KuMQHc9ACAJUH3XjrFK9Hbj9uT6hH%2FWvqcZqqlF5hYZuW%2BIWYKfv6eFJHAJwAgHy6GqjzXylIZbt5NdMshTCPa33OmxisRv1lIzlrzHVWK9NAj3ByI%3D"}],"group":"cf-nel","max_age":604800} nel: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800} x-content-type-options: nosniff server: cloudflare cf-ray: 72a406c43a68802a-IAD {"error":"invalid_token","error_description":"Token is expired. You can either do re-authorization or token refresh."}""", HTTP.ExceptionRequest.StatusError(401, "GET", "/api/v4/user", HTTP.Messages.Response: """ HTTP/1.1 401 Unauthorized date: Wed, 13 Jul 2022 18:19:21 GMT content-type: application/json content-length: 118 cache-control: no-cache vary: Origin www-authenticate: Bearer realm="Protected by OAuth 2.0", error="invalid_token", error_description="Token is expired. You can either do re-authorization or token refresh." x-request-id: 01G7WCJXPK937S2DN83FTRHYWB x-runtime: 0.025874 strict-transport-security: max-age=31536000 referrer-policy: strict-origin-when-cross-origin ratelimit-observed: 2 ratelimit-remaining: 1998 ratelimit-reset: 1657736421 ratelimit-resettime: Wed, 13 Jul 2022 18:20:21 GMT ratelimit-limit: 2000 gitlab-lb: fe-08-lb-gprd gitlab-sv: localhost cf-cache-status: DYNAMIC expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=8RYN575p6KuMQHc9ACAJUH3XjrFK9Hbj9uT6hH%2FWvqcZqqlF5hYZuW%2BIWYKfv6eFJHAJwAgHy6GqjzXylIZbt5NdMshTCPa33OmxisRv1lIzlrzHVWK9NAj3ByI%3D"}],"group":"cf-nel","max_age":604800} nel: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800} x-content-type-options: nosniff server: cloudflare cf-ray: 72a406c43a68802a-IAD {"error":"invalid_token","error_description":"Token is expired. You can either do re-authorization or token refresh."}"""), Base.StackTraces.StackFrame[request(f::GitForge.GitLab.GitLabAPI, fun::Function, ep::GitForge.Endpoint; headers::Vector{Pair{SubString{String}, SubString{String}}}, query::Dict{Any, Any}, request_opts::Dict{Any, Any}, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) at request.jl:149, request at request.jl:121 [inlined], #get_user#28 at helpers.jl:8 [inlined], get_user(f::GitForge.GitLab.GitLabAPI) at helpers.jl:8, do_registration_pr(repo_provider::Symbol, repo_url::SubString{String}, ref::SubString{String}, notes::SubString{String}, dexuser::TeamApp.User, subdir::SubString{String}, registry_name::SubString{String}) at registrator.jl:397, do_registration(rd::TeamApp.JuliaHubRegistrator.RegistrationData) at registrator.jl:608, handle_registrations(RUNAPP::Base.RefValue{Bool}) at registrator.jl:653, macro expansion at TeamApp.jl:390 [inlined], (::TeamApp.var"#537#554")() at task.jl:411])
zot commented 2 years ago

I was able to reproduce the expired token error on JuliaHub with two different GitLab accts -- checking it

zot commented 2 years ago

Please retry -- there's a fix now that looks like it works and I've seen some registry commits for GitLab projects...

ExpandingMan commented 2 years ago

Yay, works now, thanks!

zot commented 2 years ago

Great! Really sorry it took so long to fix this!