bufferoverflow / verdaccio-gitlab

private npm registry (Verdaccio) using gitlab-ce as authentication and authorization provider
MIT License
161 stars 56 forks source link

Can't Access Private gitlab server #127

Open as3mbus opened 3 years ago

as3mbus commented 3 years ago

i am trying to integrate private gitlab instance with verdaccio using this plugin. and yes i'm still far from understand on how verdaccio plugin works

so far what i've done is :

  1. install gitlab verdaccio package
  2. add gitlab auth plugin
  3. setting the url to http://192.168.0.16

but when i try to login using private access token the web interface only shows unable to sign in.

i've tried to set the url to https://gitlab.com and it worked just fine.

is there any way for me to debug this deeper.

thank you beforehand.

EDIT : Managed to read log file and it seems the error are on gitlab query

[gitlab] user: as3mbus error querying gitlab: StatusCodeError: 404 - {\"error\":\"404 Not Found\"}"

EDIT2 :

Traced the log to assume that my gitlab api are having problem

"[gitlab] authenticate called for user: billy.firman"
"[gitlab] user: billy.firman not found in cache"
"[gitlab] querying gitlab user groups with params: [object Object]"
"[gitlab] user: billy.firman error querying gitlab: StatusCodeError: 404 - {\"error\":\"404 Not Found\"}"

but the only problem are related to projects, and groups API.