question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[gateway@0.14.0] Schema doesn't roll forward in managed mode.

See original GitHub issue

Package Version @apollo/gateway 0.14.0 apollo-server 2.12.0

Previous Working Package Version @apollo/gateway 0.13.2 apollo-server 2.11.0

Actual Behaviour Boot Message

Error checking for changes to service definitions: When `serviceList` is not set, an Apollo Engine configuration must be provided. See https://www.apollographql.com/docs/apollo-server/federation/managed-federation/ for more information.

Push Service Update (command)

The gateway for the 'nl-web-graph@staging' graph was NOT updated with a new schema

Push Service Update (gateway)

(no log message)

Expected Behaviour Boot Message

Sat Apr 11 2020 22:16:55 GMT+0000 (Coordinated Universal Time) apollo-gateway: Gateway successfully loaded schema.
* Mode: managed
* Service: nl-web-graph@production

Push Service Update (command)

The gateway for the 'nl-web-graph@production' graph was updated with a new schema, composed from the updated 'nl-api' service

Push Service Update (gateway)

Sat Apr 11 2020 22:16:55 GMT+0000 (Coordinated Universal Time) apollo-gateway: Gateway config has changed, updating schema

Setup

const apolloServer = new ApolloServer({
  gateway,
  subscriptions: false,
  engine: {
    apiKey: config.get('engine.apiKey'),
    schemaTag: config.get('appEnv'),
  },
})
const gateway = new ApolloGateway({
  buildService({ name, url }) {
    switch (name) {
      case config.get('services.first.name'):
        return new SomeApiDataSource({ url })
      case config.get('services.second.name'):
        return new AnotherApiDataSource({ url })
    }
  },
)

Note that I have ENGINE_API_KEY ENV set and I also pass it to the server initializer.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
trevor-scheercommented, Apr 13, 2020

@rtymchyk I’ve got a reproduction of this now, working on identifying the issue and putting together a fix.

0reactions
rtymchykcommented, Apr 17, 2020

@trevor-scheer so there are no composition errors, this was basically a service push that is no-op since the graph did not change. I think I’m just reading too much into that message, will check this out again on deploy with actual graph changes and see. Thanks for your response and help with everything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kong Gateway Changelog
Fixed an issue where Kong Gateway was unable to start in free Enterprise mode while using vaults. Updated the response body for the...
Read more >
Installing MapR Data Access Gateway
In the MapR Installer, the gateway is not visible as a unique service but is installed when the MapR DataBase service is selected...
Read more >
Changelog
With this feature, ChirpStack Network Server will send all downlink opportunities (e.g. ... In case non of the gateways are within the configured...
Read more >
Untitled
#biographie Boszkowo noclegi nad jeziorem, Elo can t get it out of my head ... Istat 2014 gennaio, Still alive portal rock cover,...
Read more >
Unity-Powershell.psm1 0.14.0
Write-Verbose "Import file in debug mode: $($import.fullname)" ... Write-Warning -Message "You are no longer connected to EMC Unity array: $($this.Server)"
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found