Comments (9)
To add to this issue, when reproducing the steps in the consol we can see that API requests are blocked by CORS as seen in the log below (visible in the web consol). This issue happens even though we use the URL printed by the 101 script and also when going on localhost
. The --http-origin
flag on the vtadmin-api side seems to be set correctly according to the log, however in the request header when calling the API the field Origin
is set to localhost
(instead of http://Florents-MacBook-Pro-2.local
in my case).
Access to fetch at 'http://florents-macbook-pro-2.local:14200/api/vtctlds' from origin 'http://florents-macbook-pro-2.local:14201' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
from vitess.
Thanks @frouioui ! Would you mind sharing where you see the Origin
being set, and the network request if you have it available? 🙏
from vitess.
Ok, I was able to recreate on my new m2 laptop 😄 Might have something to do with capitalization:
snippet from my startup script:
vtadmin-api expects vtadmin-web at, and set http-origin to "http://Francess-MacBook-Pro.local:14201"
vtadmin-api is running!
- API: http://Francess-MacBook-Pro.local:14200
- Logs: /Users/francesthai/planetscale/vitess/examples/local/vtdataroot/tmp/vtadmin-api.out
- PID: 13404
Building vtadmin-web...
~/planetscale/vitess ~/planetscale/vitess/examples/local
~/planetscale/vitess/examples/local
Installing nvm...
nvm is already installed!
Configuring Node.js 20.12.2
v20.12.2 is already installed.
Now using node v20.12.2 (npm v10.7.0)
Setting VITE_VTADMIN_API_ADDRESS to "http://Francess-MacBook-Pro.local:14200"
from vitess.
Good news is that after normalizing the hostnames in the start up scripts, this works fine now:
from #15839
from vitess.
This should be fixed now that #15839 is merged. It's backported to 19 and 18 as well. Please let us know if you run into anymore issues @bantyK
from vitess.
I am sorry folks, but still the same issue. I took the latest pull on main for version 19 and ran the 101_initial_cluster script.
from vitess.
@bantyK can you share your output from running ./101_initial_cluster.sh
as well as the request body of one of those CORS errors in your network tab?
from vitess.
hi @notfelineit I had to do a fresh install and now its working. Thank you for fixing this. :)
from vitess.
@bantyK yay that's great! 🥳
from vitess.
Related Issues (20)
- Bug Report: query rewrite incorrectly moves HAVING clause to WHERE
- Bug Report: CTE query with a union and a complex expressions using literal doesn't work
- `schemadiff`: introduce "atomic diffs" concept.
- Feature Request: `PlannedReparentShard` should allow cross-cell takeover without requiring tablet alias
- Bug Report: VReplication based OnlineDDL gets stuck on subsequent migrations until --queryserver-config-schema-reload-time
- Enhancement: Restores should be possible for MySQL 8.0.35+ where version checks are relaxed
- Bug Report: `Illegal mix of collations for operation 'UNION' (errno 1271) (sqlstate HY000)` in health streamer HOT 9
- Invalid parsing of `WindowSpecification` leads to extra column in AST
- Feature Request: Get VTOrc to fix replication misconfiguration issues on replicas
- LFX community building HOT 5
- Feature Request: include information in VTGate LogStats that can indicate if a scatter is happening
- DESCRIBE fails for information_schema table/views
- Query returns "missing bind var __vtschemaname"
- Report the use of components with vulnerabilities in vitess HOT 2
- RFC: allow `vtgate` to filter tablets by tag K/Vs HOT 3
- RFC: support sampling rate for `querylog`
- Question: Incorrect Sonatype version reference HOT 2
- Bug Report: VStream fails if an excluded shard doesn't have healthy tablets HOT 2
- Feature Request: VStream API to dynamically include/exclude shards without tablets
- Feature Request: SQL syntax for schema tracking HOT 2
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 vitess.