-
Notifications
You must be signed in to change notification settings - Fork 8
Error in docking ara-web with ara API interface #16
Comments
@tzkyard Hi and thanks for the report ! Does it work if you add 192.168.6.141 in the ARA_CORS_ORIGIN_WHITELIST setting for the API server ? Do you see an error in your browser's javascript console ? |
Hi @tzkyard. Have you been able to make it work with Would like to know so we can take the appropriate action for this issue. |
I'm having the same problem.
I even tried to remove the cors-code from the ara-api but nothing seems to help. |
@rndmh3ro if you open your browser's javascript console (i.e, right click -> inspect element -> console) and refresh the page, is there any errors ? |
Yes: Firefox:
Chrome:
|
Thanks @rndmh3ro ! I see the following error:
Where is ara-web hosted relative to the API server ? I ask because ara-web queries the API server through your web browser -- hence the need for CORS. You can adjust the URL where the API server is expected to be with config.json. The address you put there should be accessible from your browser. |
I didn't know that, thanks!
Did that:
I can access the URL from my browser and get the basic api-view. Now I get another error message in the javascript console:
the ara-api server logs look good:
|
Okay, I don't know (yet) what I did, but know it works. I'll paste my working configuration later. |
@rndmh3ro The hostname on which you are accessing ara-web needs to be part of the CORS list. |
Hello, |
Sorry, I did not find a reproducable way to solve this. |
@roskogabor how are you setting things up ? what errors are you seeing ? |
I have a vm with ansible, I installed ara-server there with a nginx reverse proxy and I installed ara web on an another vm. Ips and domain names are in Cors_WHITE_list file on the server, thne nginx reverse proxy in the apiurl in the ara-web config, but when I tried from another computer what also in the white list it say cross origin request is disabled. Doesnt matter I set allow_all to true. Weird but in nginx logs I dont see anything and the browser try to access to ara-server not the nginx proxy. At the moment Im not fully understand how does it work and how it should be to work right. |
If you open your browser's inspector window and look at the console, do you see an actual CORS error or something else ? Another common issue is the assumption that ara-web communicates or connects with the ARA API directly while in fact it does not -- the query comes from your browser, not from the server where ara-web is hosted. Are you able to reach your API server in your browser ? |
In the inspector I see this:
If I ping the ip and 8000 port from here with nping I get answer. |
@dmsimard 2020-05-11 10:59:51,583 WARNING django.request: Bad Request: /api/v1/playbooks |
My os
CentOS Linux release 7.6.1810 (Core) 3.10.0-957.el7.x86_64
version of npm
[root@server-ara public]# npm --version
5.6.0
Some configure file
The status of ara api and ara-web
My problem
The ara-web shows an error:
So how to deal with this problem?
The text was updated successfully, but these errors were encountered: