stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.44k stars 2.39k forks source link

[ISSUE] Docker Installation issue #653

Open taltoris opened 1 week ago

taltoris commented 1 week ago

Describe your issue

Seems like the instructions are more for non-docker users.

docker compose build docker compose up -d

Then I go to my local ip: 192.XXX.XX.X It says it can't connect to the server.

My Inspect pallette in my browser tells me that the problem is because of something called "The Same Origin Policy"

Some digging on Github/forums tells me that this happens when the request-IP is not on the whitelist for CORs. So I updated. I tried a couple of times and then eventually gave up and put the wildcard as the last option just to get something.

29 CORS(app, resources={r"/": {"origins": # Change the origin to your frontend URL 30 [ 31 "https://localhost:3000", 32 "http://192.XXX.XX.XX:3000", 33 "https://192.XXX.XX.XX:3000", 34 "http://localhost:3000", 35 "https://sub.mydomain.com/", 36 "http://192.XXX.XX.XX:1337", 37 "https://192.XXX.XX.XX:1337", 38 "" 39 ]}})

Still not working. Now I'm getting errors for trying to reach the front end. Now it says: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:1337/api/data.

How To Reproduce

Steps to reproduce the behavior (example):

  1. clone
  2. build
  3. docker compose up

Expected behavior

A clear and concise description of what you expected to happen.

Configuration

taltoris commented 1 week ago

I should clarify that I am attempting to install it on my home-server and then access it from my home-desktop. That seems important.