Closed andrenatal closed 7 years ago
Problem is here. For some reason, this db operation is returning an error.
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.
I don't follow... if you already have a token, you need to use it instead of calling /subscribe again.
Ok, so you just want to register different domains with the same email & public ip. Yep we need to allow that.
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.