Skip to content

Commit e3e6185

Browse files
committed
added note about NODE_TLS_REJECT_UNAUTHORIZED to Troubleshooting
1 parent f4da9bd commit e3e6185

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

client-generator/troubleshooting.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Troubleshooting
22

3+
* If you are running API Platform on development machine which does not have valid TLS certificate,
4+
add `NODE_TLS_REJECT_UNAUTHORIZED=0` before running client-generator
5+
6+
```
7+
NODE_TLS_REJECT_UNAUTHORIZED=0 npx @api-platform/client-generator --generator typescript https://127.0.0.1:8000/api src/
8+
```
9+
310
* The generator does not perform any authentication, so you must ensure that all referenced Hydra paths for your API are
411
accessible anonymously. If you are using API Platform this will at least include:
512

0 commit comments

Comments
 (0)