Skip to content

Explain WatchService auth 401 failures#44

Merged
robinbraemer merged 1 commit into
connectfrom
codex/watch-401-guidance
Jul 2, 2026
Merged

Explain WatchService auth 401 failures#44
robinbraemer merged 1 commit into
connectfrom
codex/watch-401-guidance

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Summary

  • Add WatchService auth failure formatting for moxy code-prefixed 401 bodies.
  • Tell users to regenerate the token for the exact endpoint/org or switch to the owning organization when appropriate.
  • Keep unknown server messages unchanged.

Refs minekube/discordsupport#23 and pairs with minekube/moxy#349.

TDD / Verification

  • Red: ./gradlew :core:test --tests '*WatchAuthFailureMessageTest*' --no-daemon failed because the formatter did not exist.
  • Green: ./gradlew :core:test --tests '*WatchAuthFailureMessageTest*' --tests '*WatcherRegisterTest*' --no-daemon passed.
  • Final: ./gradlew :core:test --no-daemon passed.
  • git diff --check passed.

@robinbraemer
robinbraemer merged commit b3afb3e into connect Jul 2, 2026
1 check passed
@robinbraemer
robinbraemer deleted the codex/watch-401-guidance branch July 2, 2026 08:51
if (message.startsWith(TOKEN_ENDPOINT_MISMATCH)) {
return "WatchService rejected the endpoint token for this endpoint name. "
+ "Regenerate the token for this exact endpoint and organization in the Minekube dashboard, "
+ "copy it into config.yml, then restart the server. "

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does it tell user to copy token into config.yml? this is not the token location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant