From e3e6185c3892655db012b43a1bf309523cfee23e Mon Sep 17 00:00:00 2001 From: Oleg Andreyev Date: Sun, 24 Nov 2019 23:02:52 +0200 Subject: [PATCH] added note about NODE_TLS_REJECT_UNAUTHORIZED to Troubleshooting --- client-generator/troubleshooting.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client-generator/troubleshooting.md b/client-generator/troubleshooting.md index d1f373393bc..602755cda85 100644 --- a/client-generator/troubleshooting.md +++ b/client-generator/troubleshooting.md @@ -1,5 +1,12 @@ # Troubleshooting +* If you are running API Platform on development machine which does not have valid TLS certificate, +add `NODE_TLS_REJECT_UNAUTHORIZED=0` before running client-generator + +``` +NODE_TLS_REJECT_UNAUTHORIZED=0 npx @api-platform/client-generator --generator typescript https://127.0.0.1:8000/api src/ +``` + * The generator does not perform any authentication, so you must ensure that all referenced Hydra paths for your API are accessible anonymously. If you are using API Platform this will at least include: