Skip to content
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

cuelang.org: tutorial prompts the reader to start a local server on a potentially contended port #177

Open
jpluscplusm opened this issue Aug 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jpluscplusm
Copy link
Collaborator

What page were you looking at?

https://cuelang.org/docs/tutorial/working-with-a-custom-module-registry/

What version of the site were you looking at?

cue-lang/cuelang.org@b24925a

What did you do?

A user reported a problem completing the tutorial because they received an HTTP 403 halfway through the steps.

They posted a debug log that mentioned that AirTunes was the server involved. This led to https://stackoverflow.com/questions/72369320/why-always-something-is-running-at-port-5000-on-my-mac, which suggests that port 5000 isn't a macOS-friendly port for the tutorial to use for the local registry.

Suggestion: update to 5001, after confirming that neither common Linux distros nor macOS have something local that listens on that port by default.

@mvdan
Copy link
Member

mvdan commented Aug 27, 2024

Or use cue mod registry, which picks a randomly unused port:

$ cue mod registry
listening on 127.0.0.1:39321

Note that this requres the user to fish out the hostname and port from the first line of output though.

@myitcv
Copy link
Member

myitcv commented Dec 13, 2024

A user reported a problem completing the tutorial because they received an HTTP 403 halfway through the steps.

They should have received an error message when running

cue mod registry localhost:5000

Did they not? Perhaps we simply improve the docs to flag that this step might fail, with either the suggestion from @mvdan or "choose another port" as the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

3 participants