Comments (4)
Every time it tries to fetch the schema it shows this error:
And the logs show the following:
from pioneer.
CORS is enforced by the browser when making cross-origin HTTP requests initiated from scripts.
I am pretty sure you don't need to configure CORS for the desktop app of BananaCakePop.
Regardless, BananaCakePop is built with Electron. You should be able to view the DevTools (View / Toogle Developer Tools), check if CORS was applied, and inspect the network request made by the app.
I am not sure why you ran into issues with fetching the schema, I highly recommend checking the network activity and see why the introspection query failed
from pioneer.
Looking at the error message, it seemed like Banana Cake Pop did manage to find the Vapor server but it was making a request to an unknown path / route.
You might want to check what path your GraphQL Server is served at. If you call server.applyMiddleware
, you are able to set a path like (/api
, /graphql
) where the server is served at, the default is /graphql
if you don't provide anything.
server.applyMiddleware(router, at: "...")
I have tried it on a simple example server and it worked fine.
This example server served GraphQL on http://localhost:8080/graphql
.
from pioneer.
So I figured out what I was doing wrong.
I was originally doing this:
server.applyMiddleware(on: app.grouped("main", "v1"))
I switched it to this:
server.applyMiddleware(on: app.grouped("main"), at: "v1")
I didn't realize about the "graphql" default path. So I guess it was hosting it at http://localhost:8080/main/v1/graphql
from pioneer.
Related Issues (20)
- Public structs have no public initialisers
- After pausing the websocket connection from Apollo iOS, it can't reconnect. HOT 12
- Documentation search is pointing to incorrect path HOT 2
- Better typing for payload HOT 1
- Improvement to Test HOT 1
- Improvement to optional spec-compliant HOT 4
- Field Resolve Middleware HOT 1
- VaporMiddleware responding incorrectly to all paths HOT 7
- Plugins
- Error: 'ConcurrentResolve' is only available in macOS 12 or newer HOT 4
- TestConsumer Improvement
- subscription Precondition failed HOT 13
- Subscription via gateway HOT 3
- Improvement to spec-compliant HOT 1
- Value null in data on errors HOT 8
- GraphQL together with gRPC HOT 4
- Support for the new Swift Universal HTTP types
- Does Pioneer support multiplexing subscriptions over one WebSocket connection? HOT 6
- Does Pioneer support subscriptions via SSE? HOT 2
- `websocketOnInit` has not been implemented
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 pioneer.