How do I get rid of OkHttpClient A connection to was leaked

Please, does someone know how to get rid of the error message below? I tried to change log level for OkHttpClient in openhab-cli and it isn’t recognized as a bundle.

2021-02-01 20:56:00.636 [WARN ] [okhttp3.OkHttpClient                ] - 
  A connection to was leaked. Did you forget to close a response body? 
  To see where this was allocated, set the OkHttpClient logger level to FINE: 

Also tried to create a script with command Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE); and get error as well.

In javascript I get:

2021-02-01 22:13:21.681 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID '4dc190822d' failed: ReferenceError: "Logger" is not defined in <eval> at line number 1

In dsl.rule I get:

2021-02-01 22:14:03.440 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'fa7da78c39' failed:    ___ Logger.getLogger( ___ OkHttpClient.class.getName()).setLevel( ___ Level.FINE);
   1. The method or field Logger is undefined; line 1, column 2, length 6
   2. The method or field OkHttpClient is undefined; line 1, column 19, length 12
   3. The method or field Level is undefined; line 1, column 58, length 5


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.