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

Client does not ignore HTTP proxy for some requests #23

Description

@ceari

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions