Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findPokemon(): unable to get local issuer certificate #172

Open
knokmki612 opened this issue Jan 29, 2025 · 1 comment
Open

findPokemon(): unable to get local issuer certificate #172

knokmki612 opened this issue Jan 29, 2025 · 1 comment

Comments

@knokmki612
Copy link
Contributor

プロキシーネットワークを利用している環境で本アプリを実行した際、S3クライアントについては正常に通信できるが、pokeapi.coなどの外部のAPIをofetchで通信した際に unable to get local issuer certificate というメッセージとともに fetch に失敗してしまう。

const pokemon = await ofetch(`https://pokeapi.co/api/v2/pokemon/${name}`, {
agent,
});

回避策: export NODE_TLS_REJECT_UNAUTHORIZED=0 により TLS 通信での証明書の検証を無視する

@kou029w
Copy link

kou029w commented Jan 29, 2025

HackMD Nuxtのプロキシの設定 https://hackmd.io/SnbCplycT0enOGwez4bIlg#Nuxt%E3%81%AE%E3%83%97%E3%83%AD%E3%82%AD%E3%82%B7%E3%81%AE%E8%A8%AD%E5%AE%9A こちらにも補足書き足しておいてみました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants