-
Notifications
You must be signed in to change notification settings - Fork 30
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
push error 401 (Unauthorized) #22
Comments
why it ask me input username & password?? |
Encountered the same error as above. Steps to reproduce:
|
I have the same problem. Didn't get it to work. |
The LIGET_API_KEY_HASH should be set in the container. Something like this:
|
Is this just not working and no longer maintained? this issue has been open since 2020, and I'm having the exact same problem |
@gluckez Authorization is working as intended, just generate ur hash with: echo -n <UR PASSWORD HERE> | sha256sum | awk '{print toupper($1)}' Afterwards set ur environment variable via the command mentioned by @rasputino or use the following docker run -d -v data:/data/simple2 -v db:/data/ef.sqlite -v cache:/cache/simple2 -p 9011:9011 -e LIGET_API_KEY_HASH=<UR HASH HERE> tomzo/liget:1.0.3 |
dotnet nuget push CouchbaseNetClient.2.7.4.1.nupkg --source http://192.168.0.11:9011/api/v3/index.json --api-key xxxxxxx
info : 正在将 CouchbaseNetClient.2.7.4.1.nupkg 推送到 'http://192.168.0.11:9011/api/v2/package'...
info : PUT http://192.168.0.11:9011/api/v2/package/
info : Unauthorized http://192.168.0.11:9011/api/v2/package/ 255 毫秒
error: Response status code does not indicate success: 401 (Unauthorized).
The text was updated successfully, but these errors were encountered: