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

Internal server error when trying to subscribe a subdomain for the second time #9

Closed
andrenatal opened this issue Jun 9, 2017 · 4 comments · Fixed by #10
Closed
Assignees

Comments

@andrenatal
Copy link
Contributor

After I run the server for the first time with a clean database, the first call to /subscription works fine, but the subsequent ones returns with an Internal server error. If I remove the database and starts again, the same behavior repeats.

@andrenatal andrenatal changed the title Internal server error when try to subscribe a new subdomain for the second time Internal server error when trying to subscribe a subdomain for the second time Jun 9, 2017
@andrenatal
Copy link
Contributor Author

Problem is here. For some reason, this db operation is returning an error.

@andrenatal
Copy link
Contributor Author

Found the issue. There's a unique constraint in the email field. Email can't be unique, since we'll ask user's email only after we issue the certificates.

@fabricedesre
Copy link
Contributor

I don't follow... if you already have a token, you need to use it instead of calling /subscribe again.

@fabricedesre
Copy link
Contributor

Ok, so you just want to register different domains with the same email & public ip. Yep we need to allow that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants