help needed - kicad api 404 not found
I think i missed something but after a long moment passed reading the manual, i can't find what ...
Part-DB installed via Proxmox LXC latest version.
- Missing an eventual API gestion in the side bar, user or system.
- Created a Kicad user and an API key by giving the availability to create and manage API key.
trying to access https://_myserver.domain/en/kicad-api/ as it's the url mentionned in the api part of my user profile.
Created the partd.kicad_httplib Kidcad fail to connect.
When i try to access the url by my brower i got an error 404
Any idea
Proxmox is not supported here, but I try to help anyways. Can you post which error message you got that tells you that KiCAD fails to connect? What KiCAD version are you using? So you also have logged in with the KiCAD user on the web interface again? Just to make sure it's not a pending password change for the user.
When I try to access the API-URL via web browser I also get an error 404 from part-db while my KiCAD successfully displays the parts in the http library. So that seems to be normal.
I'm also not sure about the "" in your server name because: RFC 1035 and RFC 1123 restrict DNS labels to letters (A–Z, case-insensitive), digits (0–9) and hyphen (-). Labels must not start or end with a hyphen. Underscore () is not a valid DNS hostname character.
Maybe KiCAD is more picky here? How did you add the http library in the KiCAD Symbol Libraries? Can you show a screenshot. Is the path to the partdb.kicad_httplib correct?
The KiCAD API is HTTP only. You'll have to make the API accessible via HTTP in the webserver config and rewrite the URL accordingly (example for apache2):
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/en/kicad-api/(.*)$ [NC]
RewriteCond %{REQUEST_URI} !^/index.php$ [NC]
RewriteRule ^/(.*)$ https://partdb.domain.tld/$1 [R=301,L]
What's more...to test it in the browser:
- deactivate the "HTTPS only" feature for your domain
- attach a
v1to the URL:http://_myserver.domain/en/kicad-api/v1
The KiCAD API is HTTP only. You'll have to make the API accessible via HTTP in the webserver config and rewrite the URL accordingly (example for apache2):
RewriteEngine On RewriteCond %{REQUEST_URI} !^/en/kicad-api/(.*)$ [NC] RewriteCond %{REQUEST_URI} !^/index.php$ [NC] RewriteRule ^/(.*)$ https://partdb.domain.tld/$1 [R=301,L]What's more...to test it in the browser:
* deactivate the "HTTPS only" feature for your domain * attach a `v1` to the URL: `http://_myserver.domain/en/kicad-api/v1`
Hello there, thank for giving me some hints about my issue... The Webserver was already open both on TCP 80 and TCP 443.
Even if i dont understand why, adding the v1 do the trick !