-
Notifications
You must be signed in to change notification settings - Fork 159
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
Kept getting 401 error on Windows without environment variables #87
Comments
Hey, Sorry to hear you've been having trouble. In the README, I see the following text:
It seems to me that may be a little terse to explain things well, but I read it that you would need to set those options to enable the management interface, and therefore implicitly to create users. Can you help me understand a little bit better where your understanding differs so we can update things to be clearer? |
Well what I was expecting was to be able to use the sample server by just running it with the default credentials. So passing the default admin and password it should have taken requests for me to do some testing. However this did not work at all and I just got the 401 error message. I added the environment variables and bingo everything just worked. I thought that the environment variables would only be required if I wanted to customize something about the default server. The readme seems to indicate that it would work without these variables. Someone new to LFS Server sample might assume that it should work without these settings. |
I don't think there are any default credentials, and I think that's by design, from looking at the code. It looks like you may have been expecting the literal string "unset", but I believe the README means to say that no credentials are set if you don't provide an environment variable. |
Right and I think that is where the confusion comes from. If I just wanted to do a quick install test I would run with all the defaults before I configured it. When I saw "unset" I thought literally. The readme/examples just could be clarified I think to know that these values MUST be set before it can be used (or marked as REQUIRED).
|
Okay, I think I understand better where the problem is. It's completely possible to run with the management interface disabled, but it will need to have been run once to create users in the first place. I'll open a PR to improve the text. |
Not sure if this should be considered an issue or note for the developers/contributors to update the docs
I kept trying to connect to the LFS test server that was running when I had NO environment variables set and I kept getting a 401 error no matter what I did.
After setting the following in PowerShell and running it finally was successful and showed a management interface as expected. So without those variables even the default didn't seem to work properly
The text was updated successfully, but these errors were encountered: