cloud-sdk-js: Is there any way to stop SAP Cloud SDK from cluttering the log with warnings for undefined HTTPS_PROXY?

{"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… 😄

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

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.