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

[Bug]: Unexpectedly getting a 404 when registering to my server #2455

Open
axelson opened this issue Nov 23, 2024 · 1 comment
Open

[Bug]: Unexpectedly getting a 404 when registering to my server #2455

axelson opened this issue Nov 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@axelson
Copy link

axelson commented Nov 23, 2024

What did you expect to happen?

I expected that after setting the IP address of my server where atuin is running that I would be able to login and register from my clients.

What happened?

> atuin register
Registering for an Atuin Sync account
Please enter username: jason
Please enter email: [email protected]
Please enter password:
Error: There was an error with the atuin sync service: Status 404.
If the problem persists, contact the host

Location:
    /Users/runner/work/atuin/atuin/crates/atuin-client/src/api_client.rs:162:9

Atuin doctor output

{
  "atuin": {
    "version": "18.3.0",
    "sync": null,
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "fish",
    "default": "zsh",
    "plugins": [
      "atuin"
    ],
    "preexec": "built-in"
  },
  "system": {
    "os": "Darwin",
    "arch": "arm64",
    "version": "14.6.1",
    "disks": [
      {
        "name": "Macintosh HD",
        "filesystem": "apfs"
      },
      {
        "name": "Macintosh HD",
        "filesystem": "apfs"
      }
    ]
  }
}


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
@axelson axelson added the bug Something isn't working label Nov 23, 2024
@axelson axelson changed the title [Bug]: Unexpectedly getting a 404 when logging in [Bug]: Unexpectedly getting a 404 when registering Nov 23, 2024
@axelson axelson changed the title [Bug]: Unexpectedly getting a 404 when registering [Bug]: Unexpectedly getting a 404 when registering to my server Nov 23, 2024
@axelson
Copy link
Author

axelson commented Nov 23, 2024

I've tracked this down. The issue is related to configuration. Specifically:

So I think the bug is either:

Additionally I think it would be helpful if:

  • The register/login commands contacted the server to verify that it is a compatible atuin server before taking user input
  • The register command printed out the server that you're registering to
    • I want to use my own server and I wasn't sure if i had configured the sync_address correctly and from the console output it wasn't clear if I was connecting to my server or the default server
  • The 404 error message included the hostname, port and path that 404'd

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
None yet
Development

No branches or pull requests

1 participant