Skip to content

added note about NODE_TLS_REJECT_UNAUTHORIZED to Troubleshooting #995

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions client-generator/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -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:

Expand Down