Automattic / jetpack

Security, performance, marketing, and design tools β€” Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 797 forks source link

Publishing Failed - no useful error message #34833

Closed Ipstenu closed 8 months ago

Ipstenu commented 8 months ago

Impacted plugin

Social

Quick summary

When publishing a post that auto-posts to social media (instagram, facebook, and mastodon only), my posts fail with "Publishing failed"

there is NO error in my debug.log, there is NO error in the server error.log

The host (DreamHost) suggested it was the WAF from Jetpack, but there's nothing I've seen in the error logs that coincides with the time of those warnings (someone's hitting us with a lot of SQL injection attacks today).

I tried disabling the Mastodon publish only, as that is something that can be touchy with modSecurity, but it still fails.

Steps to reproduce

  1. Connect site to social media (instagram, facebook, and mastodon)
  2. Write post
  3. Publish

A clear and concise description of what you expected to happen.

Post should safely publish.

What actually happened

JSON error "Publishing Failed" and the post is published, but it does not post to social media.

The only thing in Console Log is this:

[Error] Failed to load resource: the server responded with a status of 500 () (89114, line 0)

and it links to https://lezwatchtv.com/wp-json/wp/v2/show/89114?_locale=user

Impact

All

Available workarounds?

No but the platform is still usable

Platform (Simple and/or Atomic)

Simple

Logs or notes

No response

liviopv commented 8 months ago

πŸ“Œ REPRODUCTION RESULTS

πŸ“Œ FINDINGS/SCREENSHOTS/VIDEO

https://github.com/Automattic/jetpack/assets/14153300/d5e2d450-416a-45c0-85e4-2152cbb96e96

πŸ“Œ ACTIONS

πŸ“Œ Message to Author @Ipstenu I couldn't reproduce it on two of my sites, so it doesn't seem widespread enough to justify the open bug report. I'm asking for the Jetpack Support team to reach out to you via email to troubleshoot.

Ipstenu commented 8 months ago

@liviopv If it helps, this is on DreamPress with Nginx. So it's POSSIBLE it's endemic to this specific situation.

Quirks I can think of:

  1. Nginx server
  2. Posts to Facebook BUSINESS
  3. Posts to mstdn.social
  4. Posts to Tumblr

I'm fairly sure it's a server issue, but I wanted to do due diligence.

Is there any way I can turn on more errors for Jetpack to try and diagnoise?

JenSwish commented 8 months ago

Hey @Ipstenu, I'm looking into this now. I'll email you shortly.