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

'host' key is not being set when 'Another host' #11

Closed
harleypig opened this issue Apr 3, 2024 · 1 comment
Closed

'host' key is not being set when 'Another host' #11

harleypig opened this issue Apr 3, 2024 · 1 comment

Comments

@harleypig
Copy link
Contributor

Using docker-compose.

$ pdx sign-in
Use Plandex Cloud or another host? Another host
✔ Host: … http://localhost:8080
✔ Your email: … home@nosuch.com
✉️  You'll now receive a 6 character pin by email. It will be valid for 5 minutes.
✔ Please enter your pin: … ******                                   
✔ Your name: … Alan Young
🧐 You don't have access to any orgs yet.

To join an existing org, ask an admin to either invite you directly or give your whole email domain access.

Otherwise, you can go ahead and create a new org.
Create a new org now? (y)es | (n)o> y
✔ Org name: … harleypig
With domain auto-join, you can allow any user with an email ending in @nosuch.com to auto-join this org.
Enable auto-join for nosuch.com? (y)es | (n)o> n
🚨 Error signing in
  → Error signing in to new account
    → Error resolving org
      → Error prompting no orgs
        → Error creating org
          → Error sending request
            → Post "/orgs"
              → Unsupported protocol scheme ""

The log from docker output.

plandex-server-1    | 2024/04/03 01:47:21 Received request for CreateEmailVerificationHandler
plandex-server-1    | 2024/04/03 01:47:21 Development mode: Verification pin is 2V0aPB for email home@nosuch.com
plandex-server-1    | 2024/04/03 01:47:21 Successfully created email verification
plandex-server-1    | 2024/04/03 01:47:41 Received request for CreateAccountHandler
plandex-server-1    | 2024/04/03 01:47:41 No orgs found for user
plandex-server-1    | 2024/04/03 01:47:41 Successfully created account

The accounts and auth json files.

$ jq -S '.' /home/harleypig/.plandex-home/{accounts,auth}.json
[
  {
    "email": "home@nosuch.com",
    "host": "",
    "isCloud": false,
    "isTrial": false,
    "token": "token",
    "userId": "userid",
    "userName": "Alan Young"
  }
]
{
  "email": "home@nosuch.com",
  "host": "",
  "isCloud": false,
  "isTrial": false,
  "orgId": "",
  "orgName": "",
  "token": "token",
  "userId": "userid",
  "userName": "Alan Young"
}

If I manually add the host (http://localhost:8080) then I'm able finish the sign up process.

$ pdx sign-in
Select an account: <Alan Young> home@nosuch.com
🧐 You don't have access to any orgs yet.

To join an existing org, ask an admin to either invite you directly or give your whole email domain access.

Otherwise, you can go ahead and create a new org.
Create a new org now? (y)es | (n)o> y
✔ Org name: … harleypig
With domain auto-join, you can allow any user with an email ending in @nosuch.com to auto-join this org.
Enable auto-join for nosuch.com? (y)es | (n)o> n
✅ Signed in as <Alan Young> home@nosuch.com | Org: harleypig

 plandex new  👉 start a new plan
 plandex (pl)ans  👉 list plans

docker output

plandex-server-1    | 2024/04/03 02:03:17 Received request for ListOrgsHandler
plandex-server-1    | 2024/04/03 02:03:17 authenticating request
plandex-server-1    | 2024/04/03 02:03:17 No orgs found for user
plandex-server-1    | 2024/04/03 02:03:17 Successfully listed orgs
plandex-server-1    | 2024/04/03 02:03:26 Received request for CreateOrgHandler
plandex-server-1    | 2024/04/03 02:03:26 authenticating request
plandex-server-1    | 2024/04/03 02:03:26 Successfully created org
plandex-server-1    | 2024/04/03 02:03:26 Received request for GetOrgSessionHandler
plandex-server-1    | 2024/04/03 02:03:26 authenticating request
plandex-server-1    | 2024/04/03 02:03:26 UserId: userid, Email: home@nosuch.com, OrgId: orgid
plandex-server-1    | 2024/04/03 02:03:26 Successfully got org session
@danenania
Copy link
Contributor

Thank you @harleypig, fixing this right now.

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