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

Need help to connect to Threads #406

Closed
1 task done
pawel-domanski opened this issue Oct 29, 2024 · 6 comments
Closed
1 task done

Need help to connect to Threads #406

pawel-domanski opened this issue Oct 29, 2024 · 6 comments
Labels
type: support Help is needed!

Comments

@pawel-domanski
Copy link

📜 Description

Try to configure Threads
{
"error_message": "An unknown error has occurred.",
"error_code": 1
}

👟 Reproduction steps

Click Add channel->Threads

👍 Expected behavior

Show connection to Threads

👎 Actual Behavior with Screenshots

{
"error_message": "An unknown error has occurred.",
"error_code": 1
}

💻 Operating system

Linux

🤖 Node Version

latest

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@pawel-domanski
Copy link
Author

I see in .env token, and I generate it, but I need URLS to configure on the Meta site

@jamesread
Copy link
Collaborator

Hey @pawel-domanski , the redirect URL should be https://postiz.example.com/integrations/social/threads

You need to set THREADS_APP_ID and THREADS_APP_SECRET in your env.

Try that, and if you are still gettung known errors, please share your docker logs for the Postiz container.

@jamesread jamesread added type: support Help is needed! and removed type: bug labels Nov 1, 2024
@jamesread jamesread changed the title Threads error when try to connect to Threads Need help to connect to Threads Nov 1, 2024
@pawel-domanski
Copy link
Author

Better but I don't know where I can add domain because domain is blocked :(

@pawel-domanski
Copy link
Author

No question :) I found

@pawel-domanski
Copy link
Author

postiz | {
postiz | "error": {
postiz | "message": "Invalid redirect_uri: https://postiz.dexterlab.pl/integrations/social/threads",
postiz | "type": "OAuthException",
postiz | "code": 191,
postiz | "fbtrace_id": "ApvIjr73FEf7FDkQZNYuyAo"
postiz | }
postiz | }
postiz | node:internal/process/promises:389
postiz | new UnhandledPromiseRejection(reason);
postiz | ^
postiz |
postiz | 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 "#".
postiz | at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
postiz | at processPromiseRejections (node:internal/process/promises:470:17)
postiz | at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
postiz | code: 'ERR_UNHANDLED_REJECTION'
postiz | }
postiz |
postiz | Node.js v20.17.0
postiz | TypeError: fetch failed
postiz | at node:internal/deps/undici/undici:13178:13
postiz | at async /app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:27904
postiz | at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26927) {
postiz | digest: '1760613429',
postiz | [cause]: SocketError: other side closed
postiz | at Socket. (node:internal/deps/undici/undici:6020:28)
postiz | at Socket.emit (node:events:531:35)
postiz | at endReadableNT (node:internal/streams/readable:1696:12)
postiz | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
postiz | code: 'UND_ERR_SOCKET',
postiz | socket: {
postiz | localAddress: '127.0.0.1',
postiz | localPort: 42094,
postiz | remoteAddress: '127.0.0.1',
postiz | remotePort: 3000,
postiz | remoteFamily: 'IPv4',
postiz | timeout: undefined,
postiz | bytesWritten: 1879,
postiz | bytesRead: 0
postiz | }
postiz | }
postiz | }

@pawel-domanski
Copy link
Author

Problem resolved in FB in OAuth page I put / on the end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: support Help is needed!
Projects
None yet
Development

No branches or pull requests

2 participants