0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

はてなブログ エラー「Invalid login」

Last updated at Posted at 2023-07-14

はてなブログAtomPubのAPIを利用してBasic認証を実行しようとしたところ、下記エラーが返ってきました。

<p class="error-box">Invalid login</p>

ログインできへんで〜、と。これは、IDもしくはパスワードが間違っている場合に発生するようで、私の場合はIDが全角になっているという凡ミスが原因でした。

GASのエディタでは全角が半角よりも小さいので気づかなかった。。
スクリーンショット 2023-07-14 22.09.01.png

下記URLをブラウザで叩けば、BASIC認証を求められるので、まずはそこで認証が通るか確認してみてください。
https://blog.hatena.ne.jp/{はてなID}/{ブログID}/atom/entry/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?