question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any way to stop SAP Cloud SDK from cluttering the log with warnings for undefined HTTPS_PROXY?

See original GitHub issue
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","msg":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","timestamp":"2021-10-07T15:47:29.487Z","written_at":"2021-10-07T15:47:29.487Z","written_ts":1633621649487}
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"No Proxy settings for https are found in environment variables - no proxy used","msg":"No Proxy settings for https are found in environment variables - no proxy used","timestamp":"2021-10-07T15:47:29.488Z","written_at":"2021-10-07T15:47:29.488Z","written_ts":1633621649488}
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","msg":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","timestamp":"2021-10-07T15:47:29.622Z","written_at":"2021-10-07T15:47:29.622Z","written_ts":1633621649622}
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"No Proxy settings for https are found in environment variables - no proxy used","msg":"No Proxy settings for https are found in environment variables - no proxy used","timestamp":"2021-10-07T15:47:29.624Z","written_at":"2021-10-07T15:47:29.624Z","written_ts":1633621649624}
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","msg":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","timestamp":"2021-10-07T15:47:29.644Z","written_at":"2021-10-07T15:47:29.644Z","written_ts":1633621649644}
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"No Proxy settings for https are found in environment variables - no proxy used","msg":"No Proxy settings for https are found in environment variables - no proxy used","timestamp":"2021-10-07T15:47:29.645Z","written_at":"2021-10-07T15:47:29.645Z","written_ts":1633621649645}
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","msg":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","timestamp":"2021-10-07T15:47:29.652Z","written_at":"2021-10-07T15:47:29.652Z","written_ts":1633621649652}
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"No Proxy settings for https are found in environment variables - no proxy used","msg":"No Proxy settings for https are found in environment variables - no proxy used","timestamp":"2021-10-07T15:47:29.654Z","written_at":"2021-10-07T15:47:29.654Z","written_ts":1633621649654}
{"custom_fields":{"messageContext":"proxy-util","package":"core"},"level":"info","logger":"sap-cloud-sdk-logger","message":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","msg":"Try to fetch https_proxy or HTTPS_PROXY from the process env. Found value is undefined","timestamp":"2021-10-07T15:47:29.662Z","written_at":"2021-10-07T15:47:29.662Z","written_ts":1633621649662}

And many more… 😄

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
deekshas8commented, Oct 15, 2021

Hi @piejanssens ,

I believe the cause might be that there are two versions of the @sap-cloud-sdk/util, the canary version you added explicitly and the latest version that is used by @sap/cds or @sap-cloud-sdk/core.

We plan on releasing a new stable version soon and hopefully that should resolve the issue. I will update you once it is available to test.

0reactions
piejanssenscommented, Oct 28, 2021

Hi @deekshas8, I can confirm that the fix is working correctly. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to turn off excessive logging from CDS NodeJS app?
Hi,. We are running a CDS application in node.js with the destination and connectivity services. It is filling up the logs with messages ......
Read more >
Can't call external service when using the OData v2 proxy on ...
I have a CAP project which calls an external service to start a workflow. When I add the odata v2 proxy so that...
Read more >
Unable to login to cloud application studio(c4c SDK) version
If you connected thru WIFI, then un-check the "Use HTTP Proxy" checkbox under "Proxy Settings" under Connectivity. Now login it will resolve the ......
Read more >
Step 12 with SAP Cloud SDK: Logging with SAP Cloud SDK
First, we will use AuditLogger to fulfil auditing requirements. Next, we will walk you through the steps required to log any other information ......
Read more >
SAP BTP Connectivity
In this Guide. Hover over the elements for a description. Click an element for more information. • Connectivity in the Cloud Foundry Environment ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found