Markdown Monster
Can't Post from MM to Wordpress Blog
Gravatar is a globally recognized avatar based on your email address. Can't Post from MM to Wordpress Blog
  Brent Giesler
  All
  Dec 30, 2018 @ 03:48pm

Hey Rick.

I'm sure this is very basic, just couldn't find the answer.

I've followed the doc and am still unable to post to my Wordpress site.

How could I troubleshoot?

Thanks.

Gravatar is a globally recognized avatar based on your email address. re: Can't Post from MM to Wordpress Blog
  Rick Strahl
  Brent Giesler
  Dec 30, 2018 @ 04:17pm

Hi Brent,

What happens exactly? Any error messages? You can also check the log at Help -> Show Error Log which might have more detailed info on the error.

Are you able to create the Weblog configuration? When you click the icon does it say it found a valid endpoint? It should say The URL is a valid RPC endpoint.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Can't Post from MM to Wordpress Blog
  Brent Giesler
  Rick Strahl
  Dec 30, 2018 @ 05:50pm

I do see the message that it's a valid endpoint.

I can post using Open Live Writer to that same endpoint.

Here's the log:

12/30/2018 7:38:01 PM - Error sending post to Weblog at http://184.154.220.66/~buyourbu/brentgiesler/xmlrpc.php: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. Markdown Monster v1.14.5.0 10.0.17134.1.x86fre.rs4_release.180410-1804 - en-US - NET 4.7.2 - 32 bit en-US - en-US

System at System.Net.HttpWebRequest.GetResponse() at CookComputing.XmlRpc.XmlRpcClientProtocol.GetWebResponse(WebRequest request) at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, MethodInfo mi, Object[] parameters) at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[] Parameters) at XmlRpcProxy195718ca-c8f1-4303-9f0c-042123c3bdb8.NewPost(Object blogId, String username, String password, XmlRpcPost content, Boolean publish) at WebLogAddin.MetaWebLogApi.MetaWeblogWrapper.NewPost(Post post, Boolean publish) at WebLogAddin.MetaWebLogApi.MetaWebLogWordpressApiClient.PublishCompletePost(Post post, String basePath, Boolean sendAsDraft, String markdown)

12/30/2018 7:38:01 PM - Error sending post to Weblog at http://184.154.220.66/~buyourbu/brentgiesler/xmlrpc.php: Error sending post to Weblog: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

12/30/2018 7:42:55 PM - Double to Int Conversion failed: NaN - failValue: 0

12/30/2018 7:42:55 PM - Double to Int Conversion failed: NaN - failValue: 0

12/30/2018 7:42:56 PM - TabControl.GetOrderedHeaders() failed. Saving unordered. _dragablzItemsControl is null Markdown Monster v1.14.5.0 10.0.17134.1.x86fre.rs4_release.180410-1804 - en-US - NET 4.7.2 - 32 bit en-US - en-US

MarkdownMonster at MarkdownMonster.MainWindow.SaveOpenDocuments() in C:\projects2010\MarkdownMonster\MarkdownMonster\MainWindow.xaml.cs:line 878

12/30/2018 7:44:09 PM - Error sending post to Weblog at http://184.154.220.66/~buyourbu/brentgiesler/xmlrpc.php: The underlying connection was closed: The connection was closed unexpectedly. Markdown Monster v1.14.5.0 10.0.17134.1.x86fre.rs4_release.180410-1804 - en-US - NET 4.7.2 - 32 bit en-US - en-US

System at System.Net.HttpWebRequest.GetResponse() at CookComputing.XmlRpc.XmlRpcClientProtocol.GetWebResponse(WebRequest request) at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, MethodInfo mi, Object[] parameters) at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[] Parameters) at XmlRpcProxy5d95f3c1-c06b-4d33-b9f5-2d823c89b59f.NewPost(Object blogId, String username, String password, XmlRpcPost content, Boolean publish) at WebLogAddin.MetaWebLogApi.MetaWeblogWrapper.NewPost(Post post, Boolean publish) at WebLogAddin.MetaWebLogApi.MetaWebLogWordpressApiClient.PublishCompletePost(Post post, String basePath, Boolean sendAsDraft, String markdown)

12/30/2018 7:44:09 PM - Error sending post to Weblog at http://184.154.220.66/~buyourbu/brentgiesler/xmlrpc.php: Error sending post to Weblog: The underlying connection was closed: The connection was closed unexpectedly.

Gravatar is a globally recognized avatar based on your email address. re: Can't Post from MM to Wordpress Blog
  Rick Strahl
  Brent Giesler
  Dec 30, 2018 @ 09:04pm

Hi Brent,

Ok, took a look at your Wordpress URL and I was actually able to duplicate the problem.

It's an obscure bug - apparently your host is rejecting the User Agent of the XML RPC library we're using to send the Weblog requests. Most servers don't care, but it looks like your's is failing apparently due to a . in the UA string.

Explicit requests (like the endpoint check) that are using a different user agent are working while others that send actual data do not. Long story short I changed the User Agent to Markdown-Monster in all cases and I'm now able to call at least the blog check and download posts endpoints and get proper error messages (for login failures) from your Wordpress server.

Give this a try with the update v1.14.5.5 I posted on the download page. I obviously can't test this with full requests on your server, so let me know if that works better...

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Can't Post from MM to Wordpress Blog
  Brent Giesler
  Rick Strahl
  Dec 31, 2018 @ 08:09am

Hey Rick.

Works like a charm now. Thanks so much for the personalized attention.

You've helped me tons over the years, via your blog. It's a pleasure to know you're still at the helm.

Aloha.

Gravatar is a globally recognized avatar based on your email address. re: Can't Post from MM to Wordpress Blog
  Rick Strahl
  Brent Giesler
  Dec 31, 2018 @ 11:48am

Great.

That was an interesting one to track down... surprised I actually guessed that out.

I've actually seen quite a few of these types of errors when post weblog entries (connection reset) show up in my logs, so this may help with those as well.

It is an odd error though because per HTTP spec the old header should totally work - . is not illegal in a user agent.

Rick

Gravatar is a globally recognized avatar based on your email address. re: Can't Post from MM to Wordpress Blog
  Rick Strahl
  Brent Giesler
  Dec 31, 2018 @ 02:27pm

Do you know what Web Server you are running this on? I took another quick look and it looks like the server is specifically failing on the user agent of XML-RPC.NET. It works with all other permutations of dots and dashes so that's really strange.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Can't Post from MM to Wordpress Blog
  Brent Giesler
  Rick Strahl
  Jan 1, 2019 @ 10:49am

Hey Rick.

I'm hosting at SiteGround.
Their support guy told me the following:

Your site is on a shared hosting server, the exact package that it is using is called GrowBig. And the shared hosting server is working with Apache+Nginx

Does that help?

Gravatar is a globally recognized avatar based on your email address. re: Can't Post from MM to Wordpress Blog
  Rick Strahl
  Brent Giesler
  Jan 3, 2019 @ 06:33pm

Thanks Brent,

I'll just file this for future reference. I suspect this is a Web Server/nginx issue rather than the Wordpress engine or package because the connection fails immediately before it ever seems to go further. However, this seems like a popular server/proxy configuration so it's possible this is a one of configuration setting/error that's causing the problem with the user agent getting booted. My first thought was that it's simply booting any unknown user agent but it turns out that using Markdown-Monster works and as far as I could tell only the version specific XML-RPC.NET is being rejected.

Odd, but glad it worked to get you going 😃

+++ Rick ---

© 1996-2024