-
-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Part-DB cannot access info providers when having to connect through a webproxy.
To Reproduce
Steps to reproduce the behavior:
- Go to 'Create parts from info provider'
- Input Keyword and Provider, in my case 'K220J15C0GF53H5' and 'Mouser'
- Wait for the timeout to pass
- See error
Expected behavior
I would like to see webtraffic routed through our webproxy, otherwise the connections into the web are blocked by our firewall. Even though the container is setup with correct environment variables, it does not seem to respect them.
Server Side
- Part-DB Version: Part-DB 1.17.3
- PHP Version: 8.3.24 (SAPI: fpm-fcgi)
- Database Server: 11.8.3-MariaDB-ubu2404
Additional context
In the GUI you get a 500 internal server error.
In docker logs
the error message looks like this:
[2025-08-25T13:12:33.731486+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\HttpClient\Exception\TimeoutException: "Idle timeout reached for "https://api.mouser.com/api/v2/search/keyword?apiKey=e14f3cf2-8301-4e2d-a18d-edfbf370f111"." at ErrorChunk.php line 56 {"exception":"[object] (Symfony\\Component\\HttpClient\\Exception\\TimeoutException(code: 0): Idle timeout reached for \"https://api.mouser.com/api/v2/search/keyword?apiKey=e14f3cf2-8301-4e2d-a18d-edfbf370f111\". at /var/www/html/vendor/symfony/http-client/Chunk/ErrorChunk.php:56)
$ docker exec -it partdb /bin/bash
root@dc5db6bfc2e7:/var/www/html# env | grep -i proxy
no_proxy=*list of proxy exceptions*
https_proxy=http://*webproxy name*:8080
NO_PROXY=*list of proxy exceptions*
HTTPS_PROXY=http://*webproxy name*:8080
HTTP_PROXY=http://*webproxy name*:8080
http_proxy=http://*webproxy name*:8080
root@dc5db6bfc2e7:/var/www/html# curl https://api.mouser.com/api/v2/search/keyword?apiKey=e14f3cf2-8301-4e2d-a18d-edfbf370f111
{"Error":{"Code":"UnsupportedApiVersion","Message":"The requested resource with API version '1.0' does not support HTTP method 'GET'."}}
root@dc5db6bfc2e7:/var/www/html# curl --noproxy '*' https://api.mouser.com/api/v2/search/keyword?apiKey=e14f3cf2-8301-4e2d-a18d-edfbf370f111
curl: (7) Failed to connect to api.mouser.com port 443 after 75649 ms: Couldn't connect to server
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working