Atom APIでのはてなブックマークPOSTが403 Forbidden
今までPRaggerでdel.icio.usとはてブを同期していたのだが、11/25以降同期ができていなかった。
見たところ、
/usr/lib/ruby/gems/1.8/gems/hatenabm-0.1.2/lib/hatenabm.rb:64:in `post': Post Error : 403 - Forbidden (RuntimeError) from /usr/lib/ruby/1.8/net/http.rb:543:in `start' from /usr/lib/ruby/1.8/net/http.rb:440:in `start' from /usr/lib/ruby/gems/1.8/gems/hatenabm-0.1.2/lib/hatenabm.rb:59:in `post'
403 Forbiddenが返ってきている。25日以前までは大丈夫だったのにな。
POSTするプログラムはgemのhatenabmだが作者のダイアリはプライベートモードになっているので稼動してなさげ。
レスポンスボディの内容は以下の通り。192.168.3.189ってどこから出てきたIPアドレスだ。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <H1>ERROR</H1> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="http://192.168.3.189/atom/post">http://192.168.3.189/atom/post</A> <P> The following error was encountered: <UL> <LI> <STRONG> Access Denied. </STRONG> <P> Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. </UL> <P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>. <BR clear="all"> <HR noshade size="1px"> <ADDRESS> Generated Sat, 29 Nov 2008 02:45:55 GMT by squid.hatena.ne.jp (squid/2.7.STABLE5) </ADDRESS> </BODY></HTML> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <H1>ERROR</H1> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="http://192.168.3.189/atom/post">http://192.168.3.189/atom/post</A> <P> The following error was encountered: <UL> <LI> <STRONG> Access Denied. </STRONG> <P> Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. </UL> <P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>. <BR clear="all"> <HR noshade size="1px"> <ADDRESS> Generated Sat, 29 Nov 2008 02:45:55 GMT by squid.hatena.ne.jp (squid/2.7.STABLE5) </ADDRESS> </BODY></HTML>
追記(2008/11/30)
結局Plaggerで同じものを再構築し、しばらくそちらを回すことにした。
参考:del.icio.usとはてなブックマークを同期させるyaml(完全版) - Seacolor Labs. - Plaggerグループ