I’m trying to connect the Assistant with my hosted on cloud OpenCore, but not sure why it’s not connecting.
Localhost is ok, but when I try to connect with a cloud hosted it’s not.
I have set the domains as per documentation, but is there some other configuration that i should set?
Also, a cloud version is ok, and I can connect to it as a user. I used letsencrypt docker compose.
Do I need to set: agent_grpc_apihost and agent_ws_apihost? because they are empty.
Remember to use HTTPS when you use Let’s Encrypt and HTTP when you don’t (in the URL you type inside the assistant before signing in).
Not sure where agent_grpc_apihost comes from? But if you type the right URL in the UI, it should open your local browser, prompt you to sign in, and then update your local %home%/.openiap/config.json to have agentid, apiurl, and jwt. If you need to swap between installations, for me it always works when I just click sign out, add a new URL, and sign in again. However, if you’re having issues, maybe try deleting %home%/.openiap/config.json (or wipe the entire %home%/.openiap directory).
I have used: https://aaa.nnn.com
agent_grpc_apihost - this is from config in orchestrator.
Yes, it opens the app to login, when I login it does not show it’s connected (assistant app). and in opencore I cannot see him/assistant.
When you set the opencore on cloud do you have some settings to set in order to be able to connect to it?
Aslo i have checked local firewall with this command and its ok:
sudo ufw status verbose status: inactive
What is he using in the background that could potentialy not get the jwt maybe back?
No, there is nothing “special” about it. No setting or anything. When you type a URL, it uses that to make a post to /AddTokenRequest with a randomly generated key. It then opens the login page with the key added (/Login?key=) and keeps sending a request to /GetTokenRequest until it receives a token to use. This token gets created when you complete the sign-in.
This “flow” was added when I removed the login page from OpenRPA (when OpenFlow 1.4 was launched), and the code for this has not changed until a few weeks ago when we added a new “personal API token” feature. The flow is the same, but now all tokens are listed under your user, so you can “revoke” them. Also, you can create your own with a custom expiration date instead of always using the default one year.
Try looking at the console output of the API node while you do this and see if there are any errors?
I got the error:
TypeError: Cannot read properties of undefined (reading ‘_id’)
at LoginProvider.get_GetTokenRequest (file:///app/dist/LoginProvider.js:1455:88)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: Cannot read properties of undefined (reading ‘_id’)
at LoginProvider.get_GetTokenRequest (file:///app/dist/LoginProvider.js:1455:88)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: Cannot read properties of undefined (reading ‘_id’)
at LoginProvider.get_GetTokenRequest (file:///app/dist/LoginProvider.js:1455:88)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: Cannot read properties of undefined (reading ‘_id’)
at LoginProvider.get_GetTokenRequest (file:///app/dist/LoginProvider.js:1455:88)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
He cannot find the _id, in db or token that is generated is not properly generated.
This error is very weird, if you are using the latest version. Then it means your user was not found.
Can you please open the google chrome console, and then open opencore, and let me know what version you are using ? then i will see what happens at that line in your version.
( or better yet, update to latest version 1.5.12.37 and tell me the new error/line number )
I’m using 1.5.12.35 version. Now it;s updated to the .37
Here are the logs:
core-web version 0.1.2.22 git commit 2cff0c2 opencore version 1.5.12.37
Login providers: [
{
name: ‘UserPass’,
provider: ‘local’,
logo: ‘fa-microsoft’,
order: 0
},
{
name: ‘Local’,
id: ‘’,
provider: ‘local’,
issuer: ‘’,
logo: ‘fa-microsoft’
}
]
[server][INF] Client connected, client count 4
[server][INF] close 10rcerv30 ws 109.245.150.217 undefined
[server][ERR] Disconnected client, client count 3
9:25:36.35 [Message ][Process] Not signed in, and missing jwt
query failed with: Not signed in, and missing jwt
Error: Not signed in, and missing jwt
at protowrap.IsPendingReply (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:4028:41)
at parser.ondata (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3832:31)
at messageParser.write (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3687:18)
at ws.onmessage (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3822:20)
at callListener (file:///app/dist/public/server/chunks/module-CcjLScfg.js:10733:15)
at WebSocket.onMessage (file:///app/dist/public/server/chunks/module-CcjLScfg.js:10652:10)
at WebSocket.emit (node:events:524:28)
at WebSocket.emit (node:domain:489:12)
at Receiver.receiverOnMessage (file:///app/dist/public/server/chunks/module-CcjLScfg.js:12173:21)
at Receiver.emit (node:events:524:28) {
serverstack: ‘’,
code: 0
}
core-web version 0.1.2.22 git commit 2cff0c2 opencore version 1.5.12.37
TypeError: Cannot read properties of undefined (reading ‘_id’)
at LoginProvider.get_GetTokenRequest (file:///app/dist/LoginProvider.js:1455:88)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[server][INF] Client connected, client count 4
TypeError: Cannot read properties of undefined (reading ‘_id’)
at LoginProvider.get_GetTokenRequest (file:///app/dist/LoginProvider.js:1455:88)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: Cannot read properties of undefined (reading ‘_id’)
at LoginProvider.get_GetTokenRequest (file:///app/dist/LoginProvider.js:1455:88)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: Cannot read properties of undefined (reading ‘_id’)
at LoginProvider.get_GetTokenRequest (file:///app/dist/LoginProvider.js:1455:88)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
This is embarrassing… I have validate_user_form set on all my installations, so I never tested this part of the code. I am so sorry about that.
I found the issue and fixed it. Please update to 1.5.12.38 and see if that fixes the issue for you as well.
Great thank you very much ![]()
Still got issues.
Now i got connected in assistant, but after few seconds got disconnected:
core-web version 0.1.2.22 git commit 7e00e5b opencore version 1.5.12.38 [server][INF] Client connected, client count 3 [server][INF] Client connected, client count 4 [server][INF] close f05ekr90i ws 109.245.150.217 undefined [server][ERR] Disconnected client, client count 3 [server][INF] Client connected, client count 4 [server][INF] close xxxg7c22b ws 109.245.150.217 undefined [server][ERR] Disconnected client, client count 3 query failed with: Not signed in, and missing jwt 10:8:5.348 [Message ][Process] Not signed in, and missing jwt Error: Not signed in, and missing jwt at protowrap.IsPendingReply (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:4028:41) at parser.ondata (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3832:31) at messageParser.write (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3687:18) at ws.onmessage (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3822:20) at callListener (file:///app/dist/public/server/chunks/module-CcjLScfg.js:10733:15) at WebSocket.onMessage (file:///app/dist/public/server/chunks/module-CcjLScfg.js:10652:10) at WebSocket.emit (node:events:524:28) at WebSocket.emit (node:domain:489:12) at Receiver.receiverOnMessage (file:///app/dist/public/server/chunks/module-CcjLScfg.js:12173:21) at Receiver.emit (node:events:524:28) { serverstack: '', code: 0 } core-web version 0.1.2.22 git commit 7e00e5b opencore version 1.5.12.38 [server][INF] close waqp09rc1 ws 109.245.150.217 undefined [server][ERR] Disconnected client, client count 2 [server][INF] Client connected, client count 3 10:8:6.358 [Message ][Process] Not signed in, and missing jwt query failed with: Not signed in, and missing jwt Error: Not signed in, and missing jwt at protowrap.IsPendingReply (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:4028:41) at parser.ondata (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3832:31) at messageParser.write (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3687:18) at ws.onmessage (file:///app/dist/public/server/chunks/auth.svelte-vF_5z-YL.js:3822:20) at callListener (file:///app/dist/public/server/chunks/module-CcjLScfg.js:10733:15) at WebSocket.onMessage (file:///app/dist/public/server/chunks/module-CcjLScfg.js:10652:10) at WebSocket.emit (node:events:524:28) at WebSocket.emit (node:domain:489:12) at Receiver.receiverOnMessage (file:///app/dist/public/server/chunks/module-CcjLScfg.js:12173:21) at Receiver.emit (node:events:524:28) { serverstack: '', code: 0 }
please make sure to restart the assistent before trying
It’s working now. Thanks! ![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.