Problems reloading plugins when running on Azure pipeline

Hello,

Since yesterday my team is unable to run my test scripts in the Azure pipeline (they run with no problems locally) due to the following error:

com.kms.katalon.activation.plugin.models.KStoreClientExceptionWithInfo: Unexpected error occurs during executing get latest plugins
com.kms.katalon.activation.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:83)
com.kms.katalon.activation.plugin.service.PluginService.getOnlinePlugins(PluginService.java:316)
com.kms.katalon.activation.plugin.service.PluginService.reloadPlugins(PluginService.java:96)
com.kms.katalon.activation.plugin.handler.ConsoleModeReloadPluginsHandler.reload(ConsoleModeReloadPluginsHandler.java:24)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.kms.katalon.execution.console.ConsoleMain.reloadPlugins(ConsoleMain.java:560)
com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:487)
com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:37)
com.kms.katalon.application.Application.runConsole(Application.java:125)
com.kms.katalon.application.Application.start(Application.java:88)
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
org.eclipse.equinox.launcher.Main.run(Main.java:1447)
Caused by: com.kms.katalon.activation.plugin.models.KStoreClientException: Invalid Request. Status Code: 422. Message: Unprocessable Entity
com.kms.katalon.activation.plugin.service.KStoreRestClient.executeGetRequest(KStoreRestClient.java:333)
com.kms.katalon.activation.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:59)
com.kms.katalon.activation.plugin.service.KStoreRestClient.executeGetRequest(KStoreRestClient.java:333)
com.kms.katalon.activation.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:59)

The test execution fails because the script are unable to import this plugin: kms.turing.katalon.plugins.assertj.StringAssert

This happened after some configuration changes in the system to upgrade to JDK 11. However:

So I am not sure to what extent this error is happening due to those configuration changes or something else. Any idea how to fix this?

  • Katalon version: Katalon Studio 8.3.5
  • OS: Windows Server 2019 64bit
1 Like

I am also getting similar kind of issue with Concourse pipeline. Same is working in local machine. I tried updating Katalon version to 8.4.1 from 8.3.1, but no luck.

I am using Katalon docker in Concourse.

Start reloading plugins…

com.kms.katalon.activation.plugin.models.KStoreClientExceptionWithInfo: Unexpected error occurs during executing get latest plugins
at com.kms.katalon.activation.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:83)
at com.kms.katalon.activation.plugin.service.PluginService.getOnlinePlugins(PluginService.java:316)
at com.kms.katalon.activation.plugin.service.PluginService.reloadPlugins(PluginService.java:96)
at com.kms.katalon.activation.plugin.handler.ConsoleModeReloadPluginsHandler.reload(ConsoleModeReloadPluginsHandler.java:24)
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 com.kms.katalon.execution.console.ConsoleMain.reloadPlugins(ConsoleMain.java:570)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:497)
at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:37)
at com.kms.katalon.application.Application.runConsole(Application.java:125)
at com.kms.katalon.application.Application.start(Application.java:88)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
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:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
Caused by: com.kms.katalon.activation.plugin.models.KStoreClientException: Invalid Request. Status Code: 422. Message: Unprocessable Entity
at com.kms.katalon.activation.plugin.service.KStoreRestClient.executeGetRequest(KStoreRestClient.java:333)
at com.kms.katalon.activation.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:59)
… 25 more

I’m also seeing what looks to be the same error when running tests from an Azure pipeline.

1 Like

I’m also seeing what looks to be the same error when running tests from an Jenkins

1 Like

Hi,

I have same issue using Katalon Docker.

Hi @joana.pedroso, thank you for reporting this error. We’ll have our KS team to look into it soon :+1:

Hi chị Jass ơi, could you look into this bug for us? Thank kiu chị :smile:

Hi,
I have the same error when running the script on:

  1. TestOps Schedule Test Run with TestCloud
  2. Console Mode Execution

Yes, the same problem when run on GitLab via Jenkins

Any updates?

I am experiencing the same issue. Using Console Mode. Desktop App has no problems with the same plugins.

Hi, I assume I’m facing the same issue exactly also since 08.09.2022 although my error message states a further part about invalid api key:

Start reloading plugins...
Thu Sep 08 22:31:44 CEST 2022
Failed to reload plugins.
com.kms.katalon.plugin.models.ReloadPluginsException: Unexpected error occurs during executing reload plugins under account: Invalid API key, please re-check your credential
(...)
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.getOnlinePlugins(PluginService.java:271)
	at com.kms.katalon.plugin.service.PluginService.reloadPlugins(PluginService.java:91)
	... 22 more
Caused by: com.kms.katalon.plugin.models.KStoreClientException: Invalid Request. Status Code: 422. Message: Unprocessable Entity
	at com.kms.katalon.plugin.service.KStoreRestClient.executeGetRequest(KStoreRestClient.java:326)
	at com.kms.katalon.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:59)
	... 24 more

This has happened in all my Jenkins project all of a sudden since Thursday.
The day before it still looked as expected and I did not change anything inbetween.

Start reloading plugins...
Katalon version: 7.0.7
Plugin info URL: https://store.katalon.com/api/products/ks?appVersion=7.0.7&appType=ENGINE&licenseType=ENTERPRISE
Plugin info: {
  "expired": false,
  "productId": 59,
  "name": "Basic Report",
  "id": 7052
}
Plugin name: Basic Report. Is online: true. Plugin location: C:\Katalon_Engine\configuration\plugin\install\7052\1.0.8\katalon-studio-basic-report-plugin.jar.
Plugin name: katalon-studio-basic-report-plugin.jar. Is online: false. Plugin location: C:\Users\fendld\.jenkins\workspace\gRED-TaPIR-Tests\Plugins\katalon-studio-basic-report-plugin.jar.
Plugin "Basic Report" has been installed.

I noticed this because since Thursday my automatically sent emails did not contain any report attachments anymore until I found that my expected .html reports are not generated at all anymore.
So without access to the plugins, report creation is failing, which I rely on. My test suites are running for several hours during night and I can only debug when getting reports.
I checked in local app and here report is still created as expected. I reviewed my API key and it is still the same, the report app is also still active.

I’m calling test suites in Jenkins by execute windows batch command using the generated cmd command. I have not changed the command in months.
As I am using -apiKey=123456 at the moment I did try changing it to -apiKey=“123456” but still same error.
It happens equally when calling the local project or the Gitlab project.
I also updated Katalon from I think 8.3.5 to 8.4.1 but still same error.

Without reports this is unfortunately a blocker for me right now :frowning_face:

Hi all

The issue with apiKey used for reloading plugins has been resolved. Could you please try again?

Let us know if you still encounter the issue.

Thank you for your patience,

Jass

4 Likes

Plugins are loading fine now with Concourse CI. Thanks @Jass and team!

2 Likes

@Jass no more errors here - thank you for addressing this so promptly :+1:

2 Likes

@Jass Hello, OP here. I confirm I no longer get this error, my plugin is successfully imported! Thank you!

2 Likes

No more errors, all up and running. Thank you so much @Jass and team!

2 Likes

My reports are generated again, thank you so much for the fast fix!

2 Likes

Thank you all for reporting this bug to our KS team and thank you @Jass for resolving it. I’ll now close this topic so that your votes are released back to you :+1:

1 Like