Skip to content

Service stats could not be loaded (with v2.5.2 works with v2.0.0)Β #251

Open
@proc-anshul

Description

@proc-anshul
------------------------------
πŸš€ Apollo GraphQL v2.5.2
------------------------------
❌ Service stats could not be loaded. This may be because you're missing an apollo.config.js file or it is misconfigured. For more information about configuring Apollo projects, see the guide here (https://go.apollo.dev/t/config).

^ Getting the above error after upgrading to the latest version of the extension v2.5.2


Here is the apollo.config.ts file -

import env from 'dotenv';

env.config();

export default {
  client: {
    service: {
      name: 'service-name',
      url: process.env.APOLLO_HASURA_GRAPHQL_END_POINT,
      headers: {
        'x-hasura-admin-secret': process.env.APOLLO_HASURA_GRAPHQL_ADMIN_SECRET,
        'content-type': 'application/json',
      },
    },
  },
};


Works with v2.0.0

------------------------------
πŸš€ Apollo GraphQL v2.0.0
------------------------------
βœ… Service Loaded!
πŸ†” Service ID: service-name
🏷 Schema Tag: current
πŸ“ˆ Number of Types: 2245 (0 client types)
------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions