Hello. We have some bizarre issue trying to communicate with canisters on IC mainnet, and hope that maybe someone would have ideas about the cause for this.
What we do is sending query, update and management requests to a canister using ic-utils of version 0.39. All the requests work fine on all machines we tried except one specific computer. And it so happens that we need exactly this computer to work for these requests (for security reasons).
On this computer any request that we send to IC mainnet results in 400 Bad Request response with empty body. When we send exactly same requests with dfx CLI tool, they do produce the correct responses. We tried using both HSM and Basic identities when creating an agent. We also tried connecting to different canisters on different subnets, with the same result.