postiz-app icon indicating copy to clipboard operation
postiz-app copied to clipboard

Connecting Instagram standalone results in a crash

Open Daandeve opened this issue 9 months ago • 15 comments

📜 Description

When I try to login with Instagram via the Instagram standalone channel, a error occurs and the backend crashes.

{"error":{"message":"Unsupported request - method type: get","type":"IGApiException","code":100,"fbtrace_id":"xxx"}}
{"error":{"message":"Unsupported request - method type: get","type":"IGApiException","code":100,"fbtrace_id":"xxx"}}
{"error":{"message":"Unsupported request - method type: get","type":"IGApiException","code":100,"fbtrace_id":"xxx"}}
node:internal/process/promises:389
      new UnhandledPromiseRejection(reason);
      ^

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 "#<BadBody>".
    at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
    at processPromiseRejections (node:internal/process/promises:470:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v20.17.0
2025-03-07 16:21:07,099 WARN exited: backend (exit status 1; not expected)

👟 Reproduction steps

  1. Add a instagram standalone channel
  2. Login to instagram
  3. Allow permissions
  4. The crash happens

👍 Expected behavior

The Instagram account should be linked and able to be used within Postiz

👎 Actual Behavior with Screenshots

Image

💻 Operating system

Linux

🤖 Node Version

20.17.0

📃 Provide any additional context for the Bug.

No response

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

  • [x] I checked and didn't find similar issue

Are you willing to submit PR?

None

Daandeve avatar Mar 07 '25 16:03 Daandeve

Same issue

kaumudpa avatar Mar 27 '25 20:03 kaumudpa

Untill this is fixed, Did any of you figure out how to access the app / remove the IG culprit?

nboumalham avatar Apr 03 '25 13:04 nboumalham

Untill this is fixed, Did any of you figure out how to access the app / remove the IG culprit?

To help whoever is reading this before a fix. The newely added IG account that crashed the app wasn't in the DB.

I deleted the only other IG standalone account from the DB and re-added both from the UI and it worked.

nboumalham avatar Apr 03 '25 15:04 nboumalham

I created a new instagram app, and tried to connect it. no errors. I need you to give more details.

nevo-david avatar Apr 12 '25 04:04 nevo-david

aim also havin this issue

topfotl avatar Apr 12 '25 17:04 topfotl

yeah, im also facing this issue

cojerene avatar Apr 13 '25 00:04 cojerene

when im loging, i see

Insufficient rights for the developer role: Insufficient rights for the developer role

Dawnpython avatar Jun 04 '25 23:06 Dawnpython

Hi,

I had the same problem. I was able to fix it by giving my instagram account permissions to :

  1. Generate access tokens Add an Instagram account to generate access tokens and setup webhook subscriptions.

In the "API setup with Instagram business login" screen.

adenau avatar Jun 07 '25 02:06 adenau

Hi,

I had the same problem. I was able to fix it by giving my instagram account permissions to :

1. Generate access tokens
   Add an Instagram account to generate access tokens and setup webhook subscriptions.

In the "API setup with Instagram business login" screen.

Hello, can u explain more? I tried something but maybe its not working or i m doing wrong or i cant find where generate a token

Dawnpython avatar Jun 08 '25 16:06 Dawnpython

Hi, I had the same problem. I was able to fix it by giving my instagram account permissions to :

1. Generate access tokens
   Add an Instagram account to generate access tokens and setup webhook subscriptions.

In the "API setup with Instagram business login" screen.

Hello, can u explain more? I tried something but maybe its not working or i m doing wrong or i cant find where generate a token

start from the documentation page : https://docs.postiz.com/providers/instagram

scroll down to the "Instagram Standalone Option" section

in section 3 "Set up Redirect URI" screenshot, you might notice that there is a section in the configuration "1. Generate access tokens". I generated an access token, then added my instagram account in that section.

adenau avatar Jun 08 '25 20:06 adenau

Hi, I had the same problem. I was able to fix it by giving my instagram account permissions to :

1. Generate access tokens
   Add an Instagram account to generate access tokens and setup webhook subscriptions.

In the "API setup with Instagram business login" screen.

Hello, can u explain more? I tried something but maybe its not working or i m doing wrong or i cant find where generate a token

start from the documentation page : https://docs.postiz.com/providers/instagram

scroll down to the "Instagram Standalone Option" section

in section 3 "Set up Redirect URI" screenshot, you might notice that there is a section in the configuration "1. Generate access tokens". I generated an access token, then added my instagram account in that section.

unfortunately, when I press this button, I get the same thing as when I try to connect my account

Dawnpython avatar Jun 12 '25 19:06 Dawnpython

Hi, I had the same problem. I was able to fix it by giving my instagram account permissions to :

1. Generate access tokens
   Add an Instagram account to generate access tokens and setup webhook subscriptions.

In the "API setup with Instagram business login" screen.

Hello, can u explain more? I tried something but maybe its not working or i m doing wrong or i cant find where generate a token

start from the documentation page : https://docs.postiz.com/providers/instagram scroll down to the "Instagram Standalone Option" section in section 3 "Set up Redirect URI" screenshot, you might notice that there is a section in the configuration "1. Generate access tokens". I generated an access token, then added my instagram account in that section.

unfortunately, when I press this button, I get the same thing as when I try to connect my account

my bad, i forgot change my account to professional, but now i cant posting in instaram

[0] 2|workers | in progress [0] 2|workers | in progress1 [0] 2|workers | {"error":{"message":"Only photo or video can be accepted as media type.","type":"OAuthException","code":9004,"error_subcode":2207052,"is_transient":false,"error_user_title":"\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e2a\u0e37\u0e48\u0e2d\u0e44\u0e21\u0e48\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 URI \u0e2a\u0e37\u0e48\u0e2d\u0e44\u0e21\u0e48\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32","error_user_msg":"\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e37\u0e48\u0e2d\u0e08\u0e32\u0e01 URI http://localhost:5000/uploads/2025/06/12/e31a099bad7fa1346d91dfb108a70a871.jpeg \u0e44\u0e14\u0e49 \u0e42\u0e1b\u0e23\u0e14\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e49\u0e2d\u0e08\u0e33\u0e01\u0e31\u0e14\u0e43\u0e19\u0e40\u0e2d\u0e01\u0e2a\u0e32\u0e23\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e14\u0e39\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21: https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media#creating","fbtrace_id":"AzUiOdB64_3X5_PJ5t_755j"}}

Dawnpython avatar Jun 12 '25 21:06 Dawnpython

Same here, in Postiz v1.65.7. Can't post to Instagram standalone at all.

arladmin avatar Jul 23 '25 16:07 arladmin

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Oct 21 '25 16:10 github-actions[bot]

Same here, in Postiz v1.65.7. Can't post to Instagram standalone at all.

👆

arladmin avatar Oct 22 '25 06:10 arladmin