Cannot reload plugins


#1

Hello guys,

I was able to reload plugins earlier, but now for some reason I can’t get plugins from the store. It gives me an error:

image
image

I have configured username and password correctly in application.properties under .katalon folder. Why does it give me unauthorized status code as an response ?


#2

@brithwulf Which version do you use? Could you send me detail information on this issue?(full Screenshot , full log file(You can figure out it at Help -> Error Log)


#3

hmm, now I get this kind of error:

com.kms.katalon.plugin.models.KStoreClientAuthException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
	at com.kms.katalon.composer.handlers.RequireAuthorizationHandler.getUsernamePasswordCredentials(RequireAuthorizationHandler.java:49)
	at com.kms.katalon.composer.handlers.ManagePluginsHandler.execute(ManagePluginsHandler.java:21)
	at com.kms.katalon.composer.toolbar.PluginStoreToolControl$1$3.widgetSelected(PluginStoreToolControl.java:75)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at com.kms.katalon.core.application.Application.internalRunGUI(Application.java:154)
	at com.kms.katalon.core.application.Application.runGUI(Application.java:144)
	at com.kms.katalon.core.application.Application.start(Application.java:74)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:936)
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847)
	at com.sun.crypto.provider.PKCS12PBECipherCore.implDoFinal(PKCS12PBECipherCore.java:399)
	at com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndDESede.engineDoFinal(PKCS12PBECipherCore.java:431)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at com.kms.katalon.util.CryptoUtil.decode(CryptoUtil.java:86)
	at com.kms.katalon.composer.handlers.RequireAuthorizationHandler.getUsernamePasswordCredentials(RequireAuthorizationHandler.java:43)
	... 31 more

image

I am using 6.3.2 of katalon version.

**Error log: **

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-08-22 12:23:43.680
!MESSAGE Credentials not found.

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-08-22 12:23:43.681
!MESSAGE Failed to reload plugins.

#4

Hi ,

I am also facing issue in reload plugin. I was able to reload plugin on katalon 6.2.1 earlier but now getting error in plugin reload for katalon 6.2.2 and later versions.
Error log is attached

Error.log (381.5 KB)


#5

Hi @brithwulf, please delete the application.properties file in your <user_home>/.katalon folder, then reactivate Katalon Studio and try reloading again.
@tanvi.kashyap, please use the latest version of Katalon Studio and try reloading again. If error occurs, please send us the error log file.


#6

Hello,

I have deleted .applicationproperties file, but same error appears.
This is the error message:

Error reloading plugins
com.kms.katalon.plugin.models.ReloadPluginsException: Unexpected error occurs during executing reload plugins under account: credential: ****@***.**, endpoint: https://store.katalon.com/api/products/ks?appVersion=6.3.3
	at com.kms.katalon.plugin.service.PluginService.reloadPlugins(PluginService.java:189)
	at com.kms.katalon.composer.handlers.ReloadPluginsHandler$1.run(ReloadPluginsHandler.java:61)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.kms.katalon.plugin.models.KStoreClientExceptionWithInfo: Unexpected error occurs during executing get latest plugins
	at com.kms.katalon.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:80)
	at com.kms.katalon.plugin.service.PluginService.fetchLatestPlugins(PluginService.java:201)
	at com.kms.katalon.plugin.service.PluginService.reloadPlugins(PluginService.java:74)
	... 2 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to store.katalon.com:443 [store.katalon.com/34.235.178.7, store.katalon.com/54.86.12.89] failed: Connection timed out: connect
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
	at com.kms.katalon.plugin.service.KStoreRestClient.executeGetRequest(KStoreRestClient.java:259)
	at com.kms.katalon.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:59)
	... 4 more
Caused by: java.net.ConnectException: Connection timed out: connect
	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337)
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
	... 15 more

P.S: Also, when I try to reach the endpoint https://store.katalon.com/api/products/ks?appVersion=6.3.3, it gives me a response: 401 Unauthorized, but I’ve given authorization user and password


#7

Hi @brithwulf,
Are you behind a proxy?


#8

Yes, I am behind the proxy and I’ve selected in katalon proxy settings Use system proxy.


#9

Please select manual proxy option and provide the address and port of your proxy, then reload again