GithubHelp home page GithubHelp logo

Comments (13)

OneCricketeer avatar OneCricketeer commented on June 16, 2024 27

I think you're missing the proxy setting

https://github.com/conduktor/kafka-stack-docker-compose/blob/adaed89009641ad490e0697697e47b35582b7619/full-stack.yml#L57

The property value from the UI container should not be localhost

from schema-registry-ui.

Antwnis avatar Antwnis commented on June 16, 2024 3

The solution is to edit and add 2 lines in the schema registry properties

vim etc/schema-registry/schema-registry.properties

Add the following 2 lines

access.control.allow.methods=GET,POST,PUT,OPTIONS
access.control.allow.origin=*

And then start via bin/./confluent start

from schema-registry-ui.

OneCricketeer avatar OneCricketeer commented on June 16, 2024 3

In a container, you'd use the following environment variables

SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_METHODS=GET,POST,PUT,OPTIONS
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_ORIGIN='*' 

from schema-registry-ui.

p768lwy3 avatar p768lwy3 commented on June 16, 2024 2

The solution is to edit and add 2 lines in the schema registry properties

vim etc/schema-registry/schema-registry.properties

Add the following 2 lines

access.control.allow.methods=GET,POST,PUT,OPTIONS
access.control.allow.origin=*

And then start via bin/./confluent start

Hi,

I am hosting the schema-registry which the version of image is also 5.2.1 on kubernetes deployed by helm chart, and I have tried to host a schema-registry-ui by helm chart with the following command:

helm install stable/schema-registry-ui --version 0.4.0 --namespace namespace --name name --set schemaRegistry.url=http://[kubernetes service ip address]

However, the ui returned CONNECTIVITY ERROR after starting up. Also, I have tried to enable the CORS and downgrade the image version to 5.0.2, but the ui still cannot connect to schema-registry.

Is there any solution or suggestion of this trouble?

from schema-registry-ui.

nicolasesprit avatar nicolasesprit commented on June 16, 2024 1

Same error for me with Kafka 5.3.1 and lastest schema-registry-ui (0.9.5).

Docker compose with settings suggered by @Cricket007 :

    schema-registry-ui:
      image: landoop/schema-registry-ui
      container_name: schema-registry-ui
      depends_on:
        - schema-registry
      ports:
        - 8000:8000
      environment:
        SCHEMAREGISTRY_URL: "http://schema-registry:8081"


    schema-registry:
      image: confluentinc/cp-schema-registry:5.3.1
      container_name: schema-registry
      depends_on:
        - zookeeper
        - kafka
      environment:
        SCHEMA_REGISTRY_HOST_NAME: schema-registry
        SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
        SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_METHODS: GET,POST,PUT,OPTIONS
        SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_ORIGIN: '*' 

http://schema-registry:8081 or http://localhost:8081 => same error.

from schema-registry-ui.

nicolasesprit avatar nicolasesprit commented on June 16, 2024 1

My bad !

Thank you very much @Cricket007 . It works !

from schema-registry-ui.

ddaughertyrca avatar ddaughertyrca commented on June 16, 2024 1

I was trying to run schema-registry & schema-registry-ui locally, and the PROXY: "true" env var fixed my issue. Thanks, @OneCricketeer.

from schema-registry-ui.

etos avatar etos commented on June 16, 2024

+1

from schema-registry-ui.

Dr-kyle avatar Dr-kyle commented on June 16, 2024

+1

from schema-registry-ui.

DaveOps83 avatar DaveOps83 commented on June 16, 2024

+1

from schema-registry-ui.

piotr-yuxuan avatar piotr-yuxuan commented on June 16, 2024

+1

from schema-registry-ui.

mthoretton avatar mthoretton commented on June 16, 2024

HI, did anyone find a workaround? Is this project still maintained?
It's a bit sad as this problem doesn't look big, maybe there is a quick fix. I didn't find anything yet. I tried schema registry 5.2.* and 5.3.*, not working. It's also working if I do the curl from @fhuertas from the container that runs schema-registry-ui :(

from schema-registry-ui.

imonteroq avatar imonteroq commented on June 16, 2024

I think you're missing the proxy setting

https://github.com/conduktor/kafka-stack-docker-compose/blob/adaed89009641ad490e0697697e47b35582b7619/full-stack.yml#L57

The property value from the UI container should not be localhost

The ENV PROXY: "true" also fixed it for me. Thanks @OneCricketeer

from schema-registry-ui.

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.