Skip to content

bug: Can't create the Unifi Controller integration if it's self-hosted. #2859

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

Closed
luke-beep opened this issue Apr 12, 2025 · 2 comments
Closed

Comments

@luke-beep
Copy link

luke-beep commented Apr 12, 2025

Describe the bug

Self-hosted Unifi controller doesn't work with the integration due to certificate issues even when the TLS check is disabled.

Steps to reproduce

  1. Self-host Unifi.
  2. Try to add the integration.
  3. Doesn't work.

Impact

No workarounds as far as I know, except for not self-hosting it without a reverse proxy in front of it.

Additional information

Logs:

2025-04-12T10:43:34.962806240Z 2025-04-12T10:43:34.962Z error: tRPC Error with mutation on 'integration.create' 
2025-04-12T10:43:34.962836871Z     at Object.onError (/app/apps/nextjs/.next/server/app/api/trpc/[trpc]/route.js:1:4403)
2025-04-12T10:43:34.962844882Z     at Object.onError (/app/apps/nextjs/.next/server/app/api/trpc/[trpc]/route.js:1:3561)
2025-04-12T10:43:34.962850812Z     at /app/apps/nextjs/.next/server/chunks/626.js:107:5069
2025-04-12T10:43:34.962857178Z     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-04-12T10:43:34.962862583Z     at async /app/apps/nextjs/.next/server/chunks/626.js:107:7029
2025-04-12T10:43:34.962870979Z     at async /app/apps/nextjs/.next/server/chunks/626.js:83:785893
2025-04-12T10:43:34.962875552Z caused by Error: Login token not found in cookies 
2025-04-12T10:43:34.962880430Z     at sB.extractLoginTokenFromCookies (/app/apps/nextjs/.next/server/chunks/6739.js:6:21195)
2025-04-12T10:43:34.962885521Z     at sB.authenticateAndSetCookieAsync (/app/apps/nextjs/.next/server/chunks/6739.js:6:20448)
2025-04-12T10:43:34.962894353Z     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-04-12T10:43:34.962900258Z     at async sB.authenticateAndConstructSessionInHeaderAsync (/app/apps/nextjs/.next/server/chunks/6739.js:6:19855)
2025-04-12T10:43:34.962906376Z     at async sB.testConnectionAsync (/app/apps/nextjs/.next/server/chunks/6739.js:6:19210)
2025-04-12T10:43:34.962910855Z     at async s1 (/app/apps/nextjs/.next/server/chunks/6739.js:6:25340)
2025-04-12T10:43:34.962914871Z     at async /app/apps/nextjs/.next/server/chunks/6739.js:6:28359
2025-04-12T10:43:34.962918917Z     at async p.middlewares (/app/apps/nextjs/.next/server/chunks/626.js:98:393829)
2025-04-12T10:43:34.962924203Z     at async u (/app/apps/nextjs/.next/server/chunks/626.js:101:68)
2025-04-12T10:43:34.962931388Z     at async u (/app/apps/nextjs/.next/server/chunks/626.js:101:68)

Version

1.16.0

Installation method

Docker Compose

Browser

Brave

@amuetste
Copy link

amuetste commented Apr 20, 2025

@manuel-rw please note that the error is different. I'm still having this issue in 1.17.

@manuel-rw
Copy link
Member

Please note that #2835 hasn't been closed. It will likely fix your issue too.

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

No branches or pull requests

3 participants