Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Client does not ignore HTTP proxy for some requests #23

Open
ceari opened this issue Aug 25, 2020 · 1 comment
Open

Client does not ignore HTTP proxy for some requests #23

ceari opened this issue Aug 25, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@ceari
Copy link

ceari commented Aug 25, 2020

Hello,

since client version v1.2.100 the client can be configured to ignore the system proxy (i.e. the proxy specified by environment variables) by setting http_proxy="-" according to https://developer.fiskaly.com/en/docs/client-documentation/#result

However, when I run the client with environment variables http_proxy="localhost", https_proxy="localhost" and configure the client with http_proxy="-", the following Exception is thrown:

FiskalyClientException{ Code=-32603, Message=Internal error, Data="failed to fetch remote JWK: Get \"https://auth.fiskaly.com/auth/realms/fiskaly/protocol/openid-connect/certs\": proxyconnect tcp: dial tcp 127.0.0.1:80: connect: connection refused"}

Setting the environment variable NO_PROXY="auth.fiskaly.com" avoids this error. It seems like http_proxy="-" is only taken into consideration for connections to kassensichv.io but not for connections to auth.fiskaly.com.

@prempador
Copy link
Contributor

Thanks for the report. This is in fact an oversight on our end. We will fix this as soon as possible.

@prempador prempador added the bug Something isn't working label Aug 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants