Problem: The AI Assistant would not launch and could not detect uploaded JPG or PDF reference files. The browser console showed Error 10501 and Uppy is not defined.
Resolution: The issue was investigated and fixed.
Original Slack Thread
User U05MQ0HLNCS: hello all,
I am having a number of issues with the ai assisstant. When I try to upload jpg or pdf for the ai to use to build a layout, it does not see the file. I have disabled all browser extension that block ads, but it doesn't work.
Now the AI assistant does not launch at all.
When I try to logout, I get the spinning klai overlay.
I was able to refresh the page and logout. When I logged in again, the AI assistant still does not load.
Also, when it did load, it did not see the image files I attached to use a reference for desiging the page.
User UP5N91P8E: <@U03JJ08GZEG> can you check this?
I’m seeing the error below when trying the open the AI Assistant
```[Error] Error 10501: executeFunction error in action "function": Can't find variable: Uppy
{
"action": "function",
"functionSnippet": "//UPPY\napp.aiAssistant.assistantType = action.options.assistantType || app.aiAssistant.assistantType\n\nfunction generateThumbnail(file) {\n return new Promise((resolve) => {\n const img = new I",
"options": {}
}
m (build.3a1d3a803cdefec1c9b6.js:2:1266724)
(anonymous function) (build.3a1d3a803cdefec1c9b6.js:2:1280544)
(anonymous function) (build.3a1d3a803cdefec1c9b6.js:2:1280561)
(anonymous function) (build.3a1d3a803cdefec1c9b6.js:2:1150335)
[Error] TypeError: null is not an object (evaluating 'document.querySelector("[id^="+e.options.elementId+"]").focus')
(anonymous function) (build.3a1d3a803cdefec1c9b6.js:2:80381)
(anonymous function) (build.3a1d3a803cdefec1c9b6.js:2:80390)```
User UBBJX2EHM: I will investigate
User U07J5QL1N07: I am seeing that same error in the console when I try to open the AI assistant as well
User U07J5QL1N07: errorHandler.js:156 Error 10501: executeFunction error in action "function": Uppy is not defined
{
"action": "function",
"functionSnippet": "//UPPY\napp.aiAssistant.assistantType = action.options.assistantType || app.aiAssistant.assistantType\n\nfunction generateThumbnail(file) {\n return new Promise((resolve) => {\n const img = new I",
"options": {}
}
User UBBJX2EHM: Thsi is fixed