Omnicore virtual controller (RW7) web service change to http in appweb.conf doesn't work
LBPAL3
✭
Hi all,
I recently started development on Omnicore project. I have created an robot simulation with RW7 Omnicore. And I would like to use the web service as I did in the past for RW6.
And I found online that Omnicore is can support https and http where you just need to modify the parameter on appweb.conf listen port.
https://forums.robotstudio.com/discussion/12180/how-to-get-started-with-robot-web-services-and-jog-a-robot-via-rest-api-requests
I tried to change the first parameters from:
#Listen -1
ListenSecure -1
to
Listen -1
#ListenSecure -1
But when I use Listen instead of ListenSecure, after reboot the virtual controller, I have error on controller
Picture uploaded to this link https://ibb.co/hmH2RKy
It doesn't have any issue when I switch back to ListenSecure.
May I know did Omnicore required particular option to enable web service?
And I couldn't find the virtual controller listening port from the netstat -aon | FindStr command as thread below. I am only able to get a response if I try on the robotstudio.exe PID instead of RobotVC.exe
https://forums.robotstudio.com/discussion/12177/how-to-change-the-listening-port-of-the-virtual-controller-robotware-6-x-and-7-x
And the webservice command doesn't work on the robotstudio.exe listening port.
Thanks for the help in advance.
I recently started development on Omnicore project. I have created an robot simulation with RW7 Omnicore. And I would like to use the web service as I did in the past for RW6.
And I found online that Omnicore is can support https and http where you just need to modify the parameter on appweb.conf listen port.
https://forums.robotstudio.com/discussion/12180/how-to-get-started-with-robot-web-services-and-jog-a-robot-via-rest-api-requests
I tried to change the first parameters from:
#Listen -1
ListenSecure -1
to
Listen -1
#ListenSecure -1
But when I use Listen instead of ListenSecure, after reboot the virtual controller, I have error on controller
Picture uploaded to this link https://ibb.co/hmH2RKy
It doesn't have any issue when I switch back to ListenSecure.
May I know did Omnicore required particular option to enable web service?
And I couldn't find the virtual controller listening port from the netstat -aon | FindStr command as thread below. I am only able to get a response if I try on the robotstudio.exe PID instead of RobotVC.exe
https://forums.robotstudio.com/discussion/12177/how-to-change-the-listening-port-of-the-virtual-controller-robotware-6-x-and-7-x
And the webservice command doesn't work on the robotstudio.exe listening port.
Thanks for the help in advance.
0
Comments
-
Hello there,
Thanks for pointing out some mistakes in the initial post. I have now corrected the post to contain correct information for OmniCore.
So if you want OmniCore to listen on HTTP as well as HTTPS, you'll have to uncomment the Listen -1 and change the -1 to some open port. I wouldn't recommend disabling HTTPS on OmniCore as that would cause RobAPI exceptions in RobotStudio.
Then, regarding "netstat -aon | FindStr", you should find the process Vrchost64.exe for OmniCore controllers instead and use that pid in the command.—Maxim RiabichevPC Software Support Engineer0 -
Thanks Maxim,
I am able to see the virtual controller listening port based on Vrchost64.exe
My next roadblock is I tried a few command but all of them return with error 401 unauthorized.
I am using username : Default User; password: robotics
my curl command : curl -u "Default User":robotics "http://127.0.0.1:51000/rw/elog
I set my listen port to 51000 and below is my netstat response on Vrchost64.exe PIDC:\Users\Boon Ping Lai>netstat -aon | FindStr 12608TCP 0.0.0.0:5466 0.0.0.0:0 LISTENING 12608TCP 0.0.0.0:50424 0.0.0.0:0 LISTENING 12608TCP 0.0.0.0:51000 0.0.0.0:0 LISTENING 12608TCP 127.0.0.1:5466 127.0.0.1:52874 ESTABLISHED 12608TCP 127.0.0.1:5466 127.0.0.1:53095 ESTABLISHED 12608TCP 127.0.0.1:50424 127.0.0.1:50427 ESTABLISHED 12608TCP 127.0.0.1:50424 127.0.0.1:52873 ESTABLISHED 12608TCP [::]:5466 [::]:0 LISTENING 12608TCP [::]:51000 [::]:0 LISTENING 12608UDP 0.0.0.0:55682 *:* 12608UDP 127.0.0.1:55683 *:* 12608
My URL GET command responseHTTP/1.1 401 UnauthorizedVary: Accept-EncodingKeep-Alive: timeout=300, max=2147483646Content-Type: text=htmlX-Content-Type-Options: nosniffDate: Fri, 29 Nov 2024 01:25:31 GMTCache-Control: no-cacheContent-Length: 29X-XSS-Protection: 1; mode=blockConnection: Keep-AliveWWW-Authenticate: Basic realm="validusers@robapi.abb"Accept-Ranges: bytesHTTP/1.1 406 Not AcceptableSet-Cookie: -http-session-=17::http.session::b6949b46571ffdc79d0d2d957e8e2560; path=/; domain=127.0.0.1; httponly; SameSite=NoneSet-Cookie: ABBCX=1769482; path=/; domain=127.0.0.1; httponly; SameSite=NoneVary: Accept-EncodingKeep-Alive: timeout=300, max=2147483645Content-Type: application/xhtml+xml;v=2.0X-Content-Type-Options: nosniffDate: Fri, 29 Nov 2024 01:25:31 GMTCache-Control: no-cache="set-cookie", max-age=0, no-cache, no-storeContent-Length: 413X-XSS-Protection: 1; mode=blockConnection: Keep-AlivePragma: no-cacheExpires: -1Accept-Ranges: bytes
?xml version="1.0" encoding="UTF-8"?
html xmlns="http://www.w3.org/1999/xhtml"
head
base href="http://127.0.0.1:51000/"
head
body
div class="status" span class="code">-1073414146
span
class="msg">C:\a\1\s\S0.01.Kernel\Areas\RobApi2\Components\rws_rapid\rws_resource_rapid_modules.cpp[62] Server cannot generate response for given accept header code:-1073414146 icode:-1
span
div
body
html
Is this due to unauthorized account login?0 -
It looks like the headers aren't correctly setup. The post you linked to in your initial post covers required header settings.
—Maxim RiabichevPC Software Support Engineer0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings