standardnotes / syncing-server

[Deprecated: Use our new Node server: https://github.com/standardnotes/syncing-server-js]
https://standardnotes.org
GNU Affero General Public License v3.0
209 stars 48 forks source link

ArgumentError upon registration request #190

Closed working-name closed 3 years ago

working-name commented 3 years ago

I followed https://docs.standardnotes.org/self-hosting/ec2-nginx which I imagine is outdated. Initially I bumped into that error while running db:migrate and realized I needed to downgrade rails from 3.0 in order to work. Now given the way this is set up with sudo in between and so on, I imagine the issue is being consistent with the version of rails you install for both the user and root? Unfortunately ruby/rails is not my cup of tea so no clear idea on how to proceed.

Any ideas? Thank you!

{
    "method": "POST",
    "path": "/auth",
    "format": "*/*",
    "controller": "Api::AuthController",
    "action": "register",
    "status": 500,
    "error": "ArgumentError: wrong number of arguments (given 1, expected 0)",
    "duration": 44.47,
    "view": 0.0,
    "db": 1.03,
    "dd": {
        "trace_id": "0",
        "span_id": "0",
        "env": "",
        "service": "",
        "version": ""
    },
    "ddsource": [
        "ruby"
    ],
    "time": 1450215.88027243,
    "params": {
        "password": "[FILTERED]",
        "email": "my@domain.name",
        "ephemeral": false,
        "identifier": "my@domain.name",
        "pw_nonce": "6d7be8722092e8331ca703191829724313e8245a96079584913a05b7819ca8c2",
        "version": "004",
        "origination": "registration",
        "created": "1617804221955",
        "api": "20200115",
        "controller": "api/auth",
        "action": "register",
        "auth": {
            "password": "[FILTERED]",
            "email": "my@domain.name",
            "ephemeral": false,
            "identifier": "my@domain.name",
            "pw_nonce": "6d7be8722092e8331ca703191829724313e8245a96079584913a05b7819ca8c2",
            "version": "004",
            "origination": "registration",
            "created": "1617804221955",
            "api": "20200115"
        }
    },
    "level": null
}","ddsource":["ruby"]}
{
    "level": "FATAL",
    "time": "2021-04-07 14:03:46 +0000",
    "message": "  ",
    "ddsource": [
        "ruby"
    ]
}
{
    "level": "FATAL",
    "time": "2021-04-07 14:03:46 +0000",
    "message": "ArgumentError (wrong number of arguments (given 1, expected 0)):",
    "ddsource": [
        "ruby"
    ]
}
{
    "level": "FATAL",
    "time": "2021-04-07 14:03:46 +0000",
    "message": "  ",
    "ddsource": [
        "ruby"
    ]
}
{
    "level": "FATAL",
    "time": "2021-04-07 14:03:46 +0000",
    "message": "app/controllers/api/auth_controller.rb:9:in `block in <class:AuthController>'",
    "ddsource": [
        "ruby"
    ]
}
JaspalSuri commented 3 years ago

Hi @working-name, sorry to hear that. I just wanted to let you know that overhauling the docs is on our todo list. The dev team is also making progress towards refactoring the server-side code in a shift away from Ruby on Rails to JavaScript/TypeScript.

working-name commented 3 years ago

Dropping this, not worth the effort.

JaspalSuri commented 3 years ago

I'm sorry to hear that. šŸ˜’ I can reach out to you once the updated docs are available, if you'd like.

working-name commented 3 years ago

So sorry, should have been more complete in my phrasing. I am dropping figuring out how to get this running standalone in Ruby. Iā€™m running it in a docker container right now, so far so good šŸ˜Š

Thank you!

JaspalSuri commented 3 years ago

That's great to hear! Thank you for clarifying. šŸ˜€

You're very welcome! šŸ™‚