Skip to content

Error: "Missing or invalid image file" #1129

@jrumol

Description

@jrumol

📜 Description

When I try to publish on Instagram or Facebook a text with an image it always fail. This is the log_

3|workers | Email sender information not found in environment variables

3|workers | [Error] posting on instagram {"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":"Se ha producido un error al descargar el contenido multimedia. El URI de este contenido no cumple nuestros requisitos.","error_user_msg":"No se ha podido recuperar el contenido multimedia de este URI: https://postiz.kerigma.tv/uploads/2025/12/19/6712fadbcb45ec9f99f10610a1f9d943ed.jpg.Consulta la secci\u00f3n de limitaciones de nuestro documento de desarrollo para obtener m\u00e1s informaci\u00f3n: https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media#creating","fbtrace_id":"AlpttEYXJ6vKWCf1NCKRVks"}} undefined BadBody {

3|workers | identifier: '',

3|workers | json: '{"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":"Se ha producido un error al descargar el contenido multimedia. El URI de este contenido no cumple nuestros requisitos.","error_user_msg":"No se ha podido recuperar el contenido multimedia de este URI: https:\/\/postiz.kerigma.tv\/uploads\/2025\/12\/19\/6712fadbcb45ec9f99f10610a1f9d943ed.jpg.Consulta la secci\u00f3n de limitaciones de nuestro documento de desarrollo para obtener m\u00e1s informaci\u00f3n: https:\/\/developers.facebook.com\/docs\/instagram-platform\/instagram-graph-api\/reference\/ig-user\/media#creating","fbtrace_id":"AlpttEYXJ6vKWCf1NCKRVks"}}',

3|workers | body: undefined,

3|workers | message: 'Media fetch failed, please try again'

3|workers | }

👟 Reproduction steps

I upload the image through an updated n8n community node and publish with an updated n8n community node. But it fails.

I upload the image through the postiz web panel and publish the image and the text directly through the web panel. But is fails.

👍 Expected behavior

I expect the image and the text to be published to Instagram and Facebook.

👎 Actual Behavior with Screenshots

It uploads the pictures with no problems with n8n or directly through the web console.
It fails publishing the picture.

💻 Operating system

Windows

🤖 Node Version

v0.2.17

📃 Provide any additional context for the Bug.

It is a self hosted instance of postiz installed with a docker compose file with docker desktop.

👀 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions