Closed codedge closed 1 year ago
@codedge It looks like your BRAMBLE_SERVICE_LIST
value is incorrect; you should replace the value with http://php:80/api/graphql
so that Bramble can run the following query:
query {
service {
name
version
schema
}
}
As you can see, the schema shouldn't be returned directly, but as a string field as part of the graphql response. This is why you're getting error decoding response: invalid character 'y' in literal true (expecting 'r'
: Bramble expects to decode a JSON response and is getting the GraphQL schema instead (it's seeing type
which it isn't recognising as JSON).
See https://movio.github.io/bramble/#/getting-started?id=preparing-your-services-for-federation for more info.
Thanks for the quick answer. Very appreciated!
Bramble does not start and fails with this error message
error decoding response: invalid character 'y' in literal true (expecting 'r'
while reading the following scheme. I have this schema returned from my service either astext/plain
or asapplication/graphql
content type, but neither works.Scheme
I am running bramble via Docker Compose like this:
docker-compose.yml
Isn't my scheme valid or can somebody spot an issue?