Skip to content

Commit 8d903c9

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 39ff4f8 + a66a1b1 commit 8d903c9

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

docs/troubleshooting.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ docker-compose logs -f
5050

5151
Please include the error logs in your issue on GitHub, if you open an issue.
5252

53+
## KiCad Integration Issues
54+
55+
### "API responded with error code: 0: Unknown"
56+
57+
If you get this error when trying to connect KiCad to Part-DB, it is most likely caused by KiCad not trusting your SSL/TLS certificate.
58+
59+
**Cause:** KiCad does not trust self-signed SSL/TLS certificates.
60+
61+
**Solutions:**
62+
- Use HTTP instead of HTTPS for the `root_url` in your KiCad library configuration (only recommended for local networks)
63+
- Use a certificate from a trusted Certificate Authority (CA) like [Let's Encrypt](https://letsencrypt.org/)
64+
- Add your self-signed certificate to the system's trusted certificate store on the computer running KiCad (the exact steps depend on your operating system)
65+
66+
For more information about KiCad integration, see the [EDA / KiCad integration](../usage/eda_integration.md) documentation.
67+
5368
## Report Issue
5469

5570
If an error occurs, or you found a bug, please [open an issue on GitHub](https://github.com/Part-DB/Part-DB-server).

docs/usage/eda_integration.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ This also allows to configure available and usable parts and their properties in
2222
Part-DB should be accessible from the PCs with KiCad. The URL should be stable (so no dynamically changing IP).
2323
You require a user account in Part-DB, which has permission to access the Part-DB API and create API tokens. Every user can have their own account, or you set up a shared read-only account.
2424

25+
{: .warning }
26+
> **HTTPS with Self-Signed Certificates**
27+
>
28+
> KiCad does not trust self-signed SSL/TLS certificates. If your Part-DB instance uses HTTPS with a self-signed certificate, KiCad will fail to connect and show an error like: `API responded with error code: 0: Unknown`.
29+
>
30+
> To resolve this issue, you have the following options:
31+
> - Use HTTP instead of HTTPS for the `root_url` (only recommended for local networks)
32+
> - Use a certificate from a trusted Certificate Authority (CA) like [Let's Encrypt](https://letsencrypt.org/)
33+
> - Add your self-signed certificate to the system's trusted certificate store on the computer running KiCad (the exact steps depend on your operating system)
34+
2535
To connect KiCad with Part-DB do the following steps:
2636

2737
1. Create an API token on the user settings page for the KiCad application and copy/save it when it is shown. Currently, KiCad can only read the Part-DB database, so a token with a read-only scope is enough.

0 commit comments

Comments
 (0)