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?

AI analysis is temporarily unavailableの解決方法

0
Posted at

はじめに

モデルを変更した後、画面に次のエラーが表示されるようになりました。

AI analysis is temporarily unavailable.

原因

ローカルの Edge Function のコードは修正済みでしたが、Supabase 上ではまだ古い Function が動いていました。

ローカルコード:     修正済み
Supabase 本番環境: 修正前

フロントエンドが呼び出すのは Supabase 上の Edge Function なので、ローカルのファイルを直しただけでは本番の挙動は変わりません。単純に「デプロイし忘れ」でした。

解決方法

修正した analyze-decisions を Supabase へ再デプロイしました。

supabase functions deploy analyze-decisions

今回は CLI 側の認証がうまくいかなかったため、Supabase Dashboard のブラウザエディタから直接デプロイする形で対応しました。デプロイ後、本番エンドポイントが新しい日本語形式のエラーを返すことも確認できました。

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?