Hi I am trying to use Studio Assist Chat feature in my Katalon Studio version 10.2.0, I have verified the AI feature is active for me. for any query i provided in chat window I am getting an exception instead of response
The StudioAssistLlmApiClientException (code:8) error typically indicates connection or authentication issues with Katalon’s AI backend. Here’s how to resolve it:
1. Verify Network Connectivity
Check Outbound Access:
Ensure your machine can reach Katalon’s API endpoints (e.g., api.katalon.com).
Test via browser: Try accessing https://api.katalon.com to confirm no firewall/proxy blocks.
Disable Corporate Firewall/Proxy:
Temporarily disable antivirus/security software (e.g., Norton, McAfee) that might block API calls.
2. Validate API Authentication
Sync Katalon Account:
Ensure you’re logged into the same Katalon account in Katalon Studio.
Go to Katalon Studio > File > Katalon Account and re-login.
Reset Tokens:
Clear cached token files: Delete ~/.katalon/katalon-ai-token (on macOS/Linux) or C:\Users\<User>\.katalon\katalon-ai-token (Windows).
3. Check API Server Status
Katalon Status Page:
Visit Katalon’s status page to confirm the Studio Assist API is operational.
Server-Side Issues:
If the error persists, contact Katalon Support with the exact error message and timestamp.
Navigate to ~/.katalon/ (macOS/Linux) or C:\Users\<User>\.katalon (Windows).
Remove the katalon-ai-token and katalon-ai-models folders.
6. Known Causes
Rate Limits: Excessive API requests may trigger timeouts. Wait 5 minutes and retry.
Server-Side Errors: Katalon’s API might be down or experiencing latency.
Next Steps
If the issue persists:
Contact Katalon Support with:
Full exception stack trace.
Your Katalon Studio version (Help > About Katalon).
Details of your workspace (e.g., project size, test suites).
Check Katalon’s Community Forum for similar issues.
Example of a Valid Response (After Fix):
java
// Studio Assist would generate this for a query like "Write a test to navigate to google.com"
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
WebUI.openBrowser()
WebUI.navigateToUrl('https://google.com')
// Add assertions here
WebUI.closeBrowser()
Are you using StudioAssist with Katalon AI service or OpenAI/Azure OpenAI? And can you give us some examples of the question you asked StudioAssist? It would be helpful for us to understand the issue better.
If you’re using KS Enterprise license, you can raise a ticket to our support portal for further support.
Hi @xuan.tran I am using StudioAssist with Katalon AI Service , I tried to generate script by providing the example prompt referring Katalon Docs , I am able to generate the script when the prompt given inside the test case but when I ask to do same using chat window I am getting an exception, I have tired asking several questions listed below
tried to ask to generate script by giving the prompt copied from katalon docs.
tired to ask explain the code in file , also passed the code snippet
for each of question i asked I am getting same error
Can you let us know how many test objects you have in your project, and how long the test case you attached to the question?
A possible reason here is that either you have too many test objects or your test case is too long; you can try turning that option off to see if the issue still exists. However, we would still love to know the info above so that we can improve StudioAssist better.
How have you been doing? If you are still facing this problem, please help follow up on this thread to get support. If already solved, feel free to share your solution. Thank you