Giter Club home page Giter Club logo

Comments (6)

radtriste avatar radtriste commented on July 17, 2024

Hi @a-kshesh
Thank you for reporting.
Which OS are you using ?
127.17.0.1 is usually the docker ip, that is why it is there ...

from incubator-kie-kogito-examples.

a-kshesh avatar a-kshesh commented on July 17, 2024

I am on macOS Ventura 13.5 intel one.

from incubator-kie-kogito-examples.

a-kshesh avatar a-kshesh commented on July 17, 2024

@radtriste I have tried the same example in another mac and it's having the same issue. I didn't see any logs in the containers as well. I am not sure why both the management and task console are not able to reach the data-index whereas the data-index works fine from localhost:8180

from incubator-kie-kogito-examples.

radtriste avatar radtriste commented on July 17, 2024

@spolti would you be able to help ?
I cannot test this on macOS

from incubator-kie-kogito-examples.

spolti avatar spolti commented on July 17, 2024

I'll take a look later.

from incubator-kie-kogito-examples.

a-kshesh avatar a-kshesh commented on July 17, 2024

Just an update. As I was trying to debug, I changed the KOGITO_DATAINDEX_HTTP_URL in docker-compose for to http://localhost:8180/graphql and the net::ERR_ADDRESS_UNREACHABLE for graphQL in consoles is gone. the other issue that are coming up is

  1. Task console isn't showing the forms, stating that there is no form to display.
  2. Management Console is throwing CORS policy error as while trying to communicate with the localhost:8080.
    I was able to solve these issues by adding
    quarkus.http.cors.origins=http://localhost:8280,http://localhost:8380
    quarkus.http.cors.headers=accept, origin, authorization, content-type, x-requested-with
    quarkus.http.cors.methods=GET,POST,PUT,DELETE,PATCH
    in the application.properties.

Now it works in terms of functionalities but I have one other problem which is a distorted management console as below from the replica of this example with some java class changes.
Untitled
Untitled

There are some other CORS error popping up with regards to the SVG as it is not showing up in the management console as below

GET http://localhost:8280/svg/processes/que_assignment/instances/dce0cd86-e0c2-4c2e-9e86-ddc95ce061d8 500 (Internal Server Error)
 Access to XMLHttpRequest at 'http://localhost:8080/svg/processes/que_assignment/instances/dce0cd86-e0c2-4c2e-9e86-ddc95ce061d8' from origin 'http://localhost:8280' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET http://localhost:8080/svg/processes/que_assignment/instances/dce0cd86-e0c2-4c2e-9e86-ddc95ce061d8 net::ERR_FAILED 500 (Internal Server Error)
Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received.

This might be causing the UI distortion because of the SVG not popping up or I am missing something!
I hope this helps in your debugging @spolti .

from incubator-kie-kogito-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.