Skip to Content
Menu
This question has been flagged
1 Reply
1789 Views

Hello Guys!

I am having problem to make some requests.
I wanted to make request on session.rpc function but there is somewhere url configuration inside that function.

I passed the endpoint of url but session.rpc func is adding another url before the endpoint 

For example:

My problem line is  constresult=awaitsession.rpc('/im_livechat/init', {channel_id: this.options.channel_id});

in this '/im_livechat/init' is a endpoint and it generates http://127.0.0.1/im_livechat/init
I wanted to change the base url generated from session.rpc func.

The error shows in the console that   http://127.0.0.1/im_livechat/init not found error

Thank You!

Avatar
Discard
Best Answer

Are you running Odoo locally ? i think you can try to change it from system parameters in Settings > Technical > System Parameters menu. If this option didn't work for you explain to me more why do you want to change your url

Activate the developer mode first. 




Edit:


Live chat already gives you pre configured widget with your odoo url to put on your other websites there is nothing wrong with the url


Happy to help :) an upvote will be awesome


Avatar
Discard
Author

Thanks, Amr Abd-Alkrim helping me!
My hosting server is IIS.

But my main problem is that I wanted to integrate Livechat module on my other websites.
But the problem is that when I add LiveChat widgets inside the other website.
All the dependencies needs to load from the server where LiveChat installed. For example the file endpoint is "/im_livechat/init" the complete url should be "http://myserver.com/im_livechat/init"

But instead it generates url like
"http://website-url--where-i-am-trying-to-integrate/im_livechat/init"

It can't load LiveChat files from any other server except where livechat installed.

I spend two weeks finding how odoo is generating base url but still unable to find the solution.

If you need more information ask me i can explain more.

Sorry for the weak english!
Thanks in advance for the help!

Live chat already gives you pre configured widget with your odoo url to put on your other websites there is nothing wrong with the url see image above

Related Posts Replies Views Activity
1
Feb 24
2499
1
Dec 23
1002
2
Aug 23
934
1
Dec 23
2076
1
Jul 23
1522