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

[acc] [cred] Cannot create a subscription with newly created user #75

Closed
ghost opened this issue Apr 16, 2018 · 3 comments
Closed

[acc] [cred] Cannot create a subscription with newly created user #75

ghost opened this issue Apr 16, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 16, 2018

Firstly, I am very impressed by this system and I appreciate all the effort you put into it!

I'm trying to simply create a user through websockets. I'll list all the messages I send and receive.

[hi]

{
  "hi": {
    "ver": "0.14"
  }
}

[acc]

{
  "acc": {
    "scheme":"basic",
    "user": "new",
    "secret":"dGVzdDp1c2Vy",
    "tags": ["Test User"],
    "desc":{
      "public":{
        "fn":"Test User"
      }
    },
    "cred": [{"meth":"email","val":"email@email.com", "resp":"123456"
    }]
  }
}

However after doing this it seems that while the user is created, I simply get a 500 internal server error when trying to create a new p2p message subscription from a default user (alice) to the newly created test user.

{
   "sub": {
        "topic": "<created users id ie: usrhHVAzk9Owww>",
        "get": {
            "what": "desc sub data"
        }
    }
}

response:

ctrl: {topic: "usrhHVAzk9Owww", code: 500, text: "internal error", ts: "2018-04-16T05:57:23.462Z"}

I am using docker, and the MySQL extension.

If you need any more information let me know!

@TaylorChristie TaylorChristie changed the title [acc] [cred] Cannot create a valid user [acc] [cred] Cannot create a subscription with newly created user Apr 16, 2018
@or-else
Copy link
Contributor

or-else commented Apr 16, 2018

Hi, thanks for the report.

I can't reproduce it though. There was such a bug but was fixed a couple of commits ago. Please make sure you are using the latest master or devel branch.

@or-else
Copy link
Contributor

or-else commented Apr 16, 2018

This is the commit which fixed the bug you reported: a6d578c

@ghost
Copy link
Author

ghost commented Apr 16, 2018

Ah I see. My docker version of the server does not update when you update the respository. I second #74 to have a singular image that is updated when you update the repository. I'll close this issue for you.

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

No branches or pull requests

2 participants