This is what I am using
1. Proxifier
2. Fiddler Classic
My code makes web requests which are intercepted by Proxifier and forwarded to Fiddler Classic.
Note: All 3 are on the same dev machine (127.0.0.1).
Earlier it was working smooth, now I get strange 502 errors in Proxifier. It happens randomly and only once every 10-15 requests. When I retry the curl request in my code, it executes successfully next time even without a sleep condition / any delay.
Note:
A) While I see the 502 error in the Proxifier log, the failed request is not visible in the Fiddler requests list. I am not sure what is the problem?
B) I only face this issue when using one particular API from eodhistoricaldata.com. I never face this issue if I use other API endpoints from the same provider
C) It started randomly few days ago. Before that, the code was working fine.
[03.24 15:33:50] php.exe - eodhistoricaldata.com:443 close, 1193 bytes (1.16 KB) sent, 2206 bytes (2.15 KB) received, lifetime <1 sec[03.24 15:33:50] php.exe - eodhistoricaldata.com:443 open through proxy 127.0.0.1:8888 HTTPS
[03.24 15:33:56] php.exe - eodhistoricaldata.com:443 close, 1194 bytes (1.16 KB) sent, 441336 bytes (430 KB) received, lifetime <1 sec
[03.24 15:34:00] php.exe - eodhistoricaldata.com:443 open through proxy 127.0.0.1:8888 HTTPS
[03.24 15:34:01] php.exe - eodhistoricaldata.com:443 close, 1191 bytes (1.16 KB) sent, 16082 bytes (15.7 KB) received, lifetime <1 sec
[03.24 15:34:22] php.exe (32564) - eodhistoricaldata.com(134.209.140.199):443 error : Could not connect through proxy 127.0.0.1(127.0.0.1):8888 - Proxy server cannot establish a connection with the target, status code 502
[03.24 15:34:22] php.exe - eodhistoricaldata.com:443 open through proxy 127.0.0.1:8888 HTTPS
[03.24 15:34:23] php.exe - eodhistoricaldata.com:443 close, 1192 bytes (1.16 KB) sent, 2206 bytes (2.15 KB) received, lifetime <1 sec