<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>401 | 浅井のブログ</title>
	<atom:link href="https://asaino.net/tag/401/feed/" rel="self" type="application/rss+xml" />
	<link>https://asaino.net</link>
	<description></description>
	<lastBuildDate>Thu, 12 Mar 2026 11:20:52 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://asaino.net/wp-content/uploads/2025/03/sakana-150x150.png</url>
	<title>401 | 浅井のブログ</title>
	<link>https://asaino.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Claude codeで401エラー、挙句に無効なOAuth要求ですだと</title>
		<link>https://asaino.net/claude-code%e3%81%a7401%e3%82%a8%e3%83%a9%e3%83%bc/</link>
					<comments>https://asaino.net/claude-code%e3%81%a7401%e3%82%a8%e3%83%a9%e3%83%bc/#respond</comments>
		
		<dc:creator><![CDATA[東久部良 和真]]></dc:creator>
		<pubDate>Thu, 12 Mar 2026 09:59:18 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[401]]></category>
		<category><![CDATA[Claude code]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[エラー]]></category>
		<guid isPermaLink="false">https://asaino.net/?p=1128</guid>

					<description><![CDATA[Claude codeを使っていると、以下のエラー /logout してからログインしようとしても、認証で弾かれる 私の場合は、ssh先のリモートサーバでclaude codeを使っていた。そして、認証のURLをローカル [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Claude codeを使っていると、以下のエラー</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">API Error: 401 {"type": "error"
("type": "error", "error": ("type": "authentication_error", "message": "OAuth token has expired. Please
obtain a new token or refresh your existing token. "},"request_id": "request_id":"req_01xxxxxxxxxxxx"} • Please run
/login</pre>



<p>/logout してからログインしようとしても、認証で弾かれる</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="401" src="https://asaino.net/wp-content/uploads/2026/03/26-03-12T14-16_Cap_OAuthErrorPage-1024x401.png" alt="無効なOath要求です。" class="wp-image-1129" srcset="https://asaino.net/wp-content/uploads/2026/03/26-03-12T14-16_Cap_OAuthErrorPage-1024x401.png 1024w, https://asaino.net/wp-content/uploads/2026/03/26-03-12T14-16_Cap_OAuthErrorPage-300x117.png 300w, https://asaino.net/wp-content/uploads/2026/03/26-03-12T14-16_Cap_OAuthErrorPage-768x301.png 768w, https://asaino.net/wp-content/uploads/2026/03/26-03-12T14-16_Cap_OAuthErrorPage-1536x601.png 1536w, https://asaino.net/wp-content/uploads/2026/03/26-03-12T14-16_Cap_OAuthErrorPage.png 1788w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>私の場合は、ssh先のリモートサーバでclaude codeを使っていた。そして、認証のURLをローカルのPCに貼っていた。それが良くなかったぽい。Claudeの垢はGoogle垢で作成していて、ブラウザは同じアカウントでログインしていたがそれでもダメらしい。</p>



<h5 class="wp-block-heading">対処法</h5>



<p>TeamviewerなどでGUIで、リモート先のブラウザで認証する。</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://asaino.net/claude-code%e3%81%a7401%e3%82%a8%e3%83%a9%e3%83%bc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
