Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Postiz
  3. Authorization errors with almost everything

Authorization errors with almost everything

Scheduled Pinned Locked Moved Postiz
10 Posts 7 Posters 1.5k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ekevu123
    wrote on last edited by
    #1

    I have tried logging into a few channels after installing Postiz, but I am getting various authorization errors with LinkedIn, Facebook, Youtube.
    LinkedIn, for example: "You need to pass the "client_id" parameter"

    Some other networks such as Pinterest or Bluesky provide a login mask indicating they might work.

    1 Reply Last reply
    1
    • J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      I think one has to add a whole bunch of env vars for each provider . See https://docs.postiz.com/providers . Will experiment

      1 Reply Last reply
      1
      • E Offline
        E Offline
        ekevu123
        wrote on last edited by
        #3

        Ah, okay, that makes sense - now that you have this notes field when you install a new app in Cloudron, it might make sense to add that information.

        1 Reply Last reply
        1
        • jordankruegerJ Offline
          jordankruegerJ Offline
          jordankrueger
          wrote on last edited by
          #4

          Was anyone able to make it work? I went through the process to try and set up X (Twitter) and go the same error after registering API keys, updating them in the .env file, restarting the app, and retrying the channel connection.

          https://docs.postiz.com/providers/x

          1 Reply Last reply
          1
          • BrutalBirdieB Offline
            BrutalBirdieB Offline
            BrutalBirdie
            Partner
            wrote on last edited by
            #5

            I did set it up with Youtube, which almost worked, but there was a Postiz internal issue that prevented posting a video.

            Like my work? Consider donating a drink. Cheers!

            1 Reply Last reply
            0
            • C Offline
              C Offline
              crewoleary
              wrote on last edited by
              #6

              I got Twitter to work after some effort - you have to make sure your X developer app is inside a "project" so that it has access to the v2 API as well.

              ...I'm now having problems with LinkedIn that I can't seem to debug at all.

              1 Reply Last reply
              3
              • N Offline
                N Offline
                Nerdrelaxo
                wrote on last edited by Nerdrelaxo
                #7
                This post is deleted!
                1 Reply Last reply
                1
                • N Offline
                  N Offline
                  Nerdrelaxo
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  1
                  • M Offline
                    M Offline
                    msbt
                    App Dev
                    wrote last edited by
                    #9

                    Did anyone manage to set this up with a LinkedIn Company Page? I followed the steps from here (Created app, Products are all selected and approved and API keys & redirect URI are set up), but when I click on "Add Channel" and authenticate with LinkedIn, this comes back and the app restarts:

                    be48a60f-1dfb-4a99-ab3c-6cd1708a5e1d-image.png

                    Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /integrations/social/linkedin-page?code=redacted HTTP/1.1" 200 6591 "https://www.linkedin.com/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /api/user/self HTTP/1.1" 200 579 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /api/user/organizations HTTP/1.1" 200 296 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /api/notifications HTTP/1.1" 200 11 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /api/integrations/list HTTP/1.1" 200 19 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /_next/static/chunks/app/(app)/(site)/launches/page-da2cbebe3c0554fd.js HTTP/1.1" 499 0 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /launches?_rsc=1dl1l HTTP/1.1" 200 1165 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /analytics?_rsc=1dl1l HTTP/1.1" 200 1204 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /media?_rsc=1dl1l HTTP/1.1" 200 785 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /plugs?_rsc=1dl1l HTTP/1.1" 200 1149 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /agents?_rsc=1dl1l HTTP/1.1" 200 1315 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /third-party?_rsc=1dl1l HTTP/1.1" 200 1182 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /settings?_rsc=1dl1l HTTP/1.1" 200 1189 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 node:internal/process/promises:389
                    Nov 03 18:04:39 new UnhandledPromiseRejection(reason);
                    Nov 03 18:04:39 ^
                    Nov 03 18:04:39 2025-11-03T17:04:39Z
                    Nov 03 18:04:39 UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<NotEnoughScopes>".
                    Nov 03 18:04:39 at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
                    Nov 03 18:04:39 at processPromiseRejections (node:internal/process/promises:470:17)
                    Nov 03 18:04:39 at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
                    Nov 03 18:04:39 code: 'ERR_UNHANDLED_REJECTION'
                    Nov 03 18:04:39 }
                    Nov 03 18:04:39 2025-11-03T17:04:39Z
                    Nov 03 18:04:39 Node.js v20.18.2
                    Nov 03 18:04:39 2025/11/03 17:04:39 [error] 164#164: *478 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.1, server: _, request: "POST /api/copilot/chat HTTP/1.1", upstream: "http://127.0.0.1:3000/copilot/chat", host: "example.com", referrer: "https://example.com/integrations/social/linkedin-page?code=redacted"
                    Nov 03 18:04:39 2025/11/03 17:04:39 [error] 164#164: *471 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.1, server: _, request: "POST /api/integrations/social/linkedin-page/connect HTTP/1.1", upstream: "http://[::1]:3000/integrations/social/linkedin-page/connect", host: "example.com", referrer: "https://example.com/integrations/social/linkedin-page?code=redacted"
                    Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "POST /api/copilot/chat HTTP/1.1" 502 166 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "POST /api/integrations/social/linkedin-page/connect HTTP/1.1" 502 166 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0"
                    Nov 03 18:04:39 /app/code/apps/backend:
                    Nov 03 18:04:39 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  postiz-backend@1.0.0 start: `dotenv -e ../../.env -- node --experimental-require-module ./dist/apps/backend/src/main.js`
                    Nov 03 18:04:39 Exit status 1
                    Nov 03 18:04:39 WARN  Local package.json exists, but node_modules missing, did you mean to install?
                    Nov 03 18:04:39 2025-11-03 17:04:39,338 WARN exited: backend (exit status 1; not expected)
                    Nov 03 18:04:40 172.18.0.1 - - [03/Nov/2025:17:04:40 +0000] "GET / HTTP/1.1" 307 15 "-" "Mozilla (CloudronHealth)"
                    Nov 03 18:04:40 2025-11-03 17:04:40,022 INFO spawned: 'backend' with pid 296
                    Nov 03 18:04:40 WARN  Issue while reading "/root/.config/pnpm/rc". EACCES: permission denied, open '/root/.config/pnpm/rc'
                    Nov 03 18:04:40 . |  WARN  Unsupported engine: wanted: {"node":">=22.0.0 <23.0.0"} (current: {"node":"v20.18.2","pnpm":"10.6.1"})
                    Nov 03 18:04:40 2025-11-03T17:04:40Z
                    Nov 03 18:04:40 > postiz-backend@1.0.0 start /app/code/apps/backend
                    Nov 03 18:04:40 > dotenv -e ../../.env -- node --experimental-require-module ./dist/apps/backend/src/main.js
                    Nov 03 18:04:40 2025-11-03T17:04:40Z
                    Nov 03 18:04:41 2025-11-03 17:04:41,509 INFO success: backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
                    

                    Can't say if it's a Cloudron or upstream thing, happy to report it there, just need some pointers 😉

                    Hosting & Web Development

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      msbt
                      App Dev
                      wrote last edited by
                      #10

                      For anyone having those problems, here's quick update for this one: After a few weeks someone from the Postiz Discord (terrible way and platform for bug reporting btw) suggested to set up Cloudflare R2. It took two restarts, but after that I managed to connect my LinkedIn pages, because apparently it wasn't able to store the profile images and thus created that redirect above.

                      Although, now that I'm writing this, the bucket it still empty, but there are files in /app/data/data/2025/11/27 (the second data folder wasn't there yet, I needed to create that one manually, maybe that solved it after all?)

                      Also, even with the working connection, this error appeared in the logs, maybe we could let that point to somewhere it can write:

                      Nov 27 19:37:40 ⨯ Failed to write image to cache x5s7nobKRgx-CJ5Nq4z9X1PXnOjxJPxqtCDckv+9gKk= Error: ENOENT: no such file or directory, mkdir '/app/code/apps/frontend/.next/cache/images'
                      Nov 27 19:37:40 at async Object.mkdir (node:internal/fs/promises:860:10)
                      Nov 27 19:37:40 at async writeToCacheDir (/app/code/node_modules/next/dist/server/image-optimizer.js:190:5)
                      Nov 27 19:37:40 at async ImageOptimizerCache.set (/app/code/node_modules/next/dist/server/image-optimizer.js:574:13)
                      Nov 27 19:37:40 at async /app/code/node_modules/next/dist/server/response-cache/index.js:121:25
                      Nov 27 19:37:40 at async /app/code/node_modules/next/dist/lib/batcher.js:45:32 {
                      Nov 27 19:37:40 errno: -2,
                      Nov 27 19:37:40 code: 'ENOENT',
                      Nov 27 19:37:40 syscall: 'mkdir',
                      Nov 27 19:37:40 path: '/app/code/apps/frontend/.next/cache/images'
                      Nov 27 19:37:40 }
                      

                      Hosting & Web Development

                      1 Reply Last reply
                      2
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search