Comments (13)
I think you're missing the proxy setting
The property value from the UI container should not be localhost
from schema-registry-ui.
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.
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.
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.
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.
My bad !
Thank you very much @Cricket007 . It works !
from schema-registry-ui.
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.
+1
from schema-registry-ui.
+1
from schema-registry-ui.
+1
from schema-registry-ui.
+1
from schema-registry-ui.
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.
I think you're missing the proxy setting
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)
- SSL
- Compatibility to latest schema registry version 5.5.0 HOT 5
- CONNECTIVITY ERROR in schema-registry-ui HOT 4
- ERR_INSUFFICIENT_RESOURCES when lots of subjects in registry HOT 3
- Unable to edit a given schema in UI
- UI says JSON field not valid but the schema works with schema-registry REST API
- Is this project abandoned? HOT 1
- Option to pass KEY and Secret for remote Schema registry is missing HOT 1
- schema registry basic authentication suoort
- Prevent edit of schemas/update of compatibility from UI interface HOT 6
- UI is not work for Confluent oss 5.1.2?? HOT 3
- Build from source with CONNECTIVITY ERROR
- Frequency of requests to schema-registry
- Connect to a schema registry that is using basic auth HOT 1
- UI is painfully slow / chews CPU with a lot of schemas HOT 1
- Cannot start app in read only mode HOT 4
- SCHEMAREGISTRY_URL bad coding practice
- License of this project? HOT 1
- Schema Registry with mTLS & ACLs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schema-registry-ui.