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

The requested resource isn't a valid image. #462

Open
1 task done
gogowitsch opened this issue Dec 2, 2024 · 2 comments
Open
1 task done

The requested resource isn't a valid image. #462

gogowitsch opened this issue Dec 2, 2024 · 2 comments

Comments

@gogowitsch
Copy link

📜 Description

When I click on a planned LinkedIn post, the software says Application error: a client-side exception has occurred (see the browser console for more information)..

In the network tab, there is a failed request with the body The requested resource isn't a valid image.
The request URL is https://postiz.blaeul.de/_next/image?url=%2Ficons%2Fplatforms%2Fundefined.png&w=48&q=75
The HTTP status is 400 Bad Request.

The connected LinkedIn profile has the default picture:
image

👟 Reproduction steps

See above

👍 Expected behavior

The “edit post” modal should appear.

👎 Actual Behavior with Screenshots

Before:
image

After clicking:
image

💻 Operating system

Linux

🤖 Node Version

v20.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?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@jamesread
Copy link
Collaborator

hmm, unusual.

Did you change STORAGE_PROVIDER?

Are you able to upload images with the Media Uploader?

Are you able to remove and re-add the LinkedIn provider?

If you switch to the "Console" view, are there any error messages there?

@gogowitsch
Copy link
Author

gogowitsch commented Dec 3, 2024

Thanks for your quick response!

STORAGE_PROVIDER is the default "local". I am using Docker Compose with this environment:
MAIN_URL: "https://postiz.blaeul.de"
FRONTEND_URL: "https://postiz.blaeul.de"
NEXT_PUBLIC_BACKEND_URL: "https://postiz.blaeul.de/api"
JWT_SECRET: redacted
DATABASE_URL: redacted
REDIS_URL: redacted
BACKEND_INTERNAL_URL: "http://localhost:3000"
IS_GENERAL: "true"
STORAGE_PROVIDER: "local"
UPLOAD_DIRECTORY: "/uploads"
NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads"
X_API_*
LINKEDIN_*
EMAIL_*

My docker-compose.yml is set to use this docker image: ghcr.io/gitroomhq/postiz-app:amd64-1732078462

Uploading and posting media works, even on LinkedIn.

Deleting and adding the LinkedIn provider works; it’s very easy. The error remains: clicking on a LinkedIn post in the calendar view triggers the error in the screenshot above. Clicking on a post of any other provider works.

The browser console shows 2 errors:
image

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

2 participants