graphql-kit / graphql-faker

🎲 Mock or extend your GraphQL API with faked data. No coding required.
MIT License
2.69k stars 225 forks source link

graphql-faker docker certificate has expired #117

Closed Antiarchitect closed 4 years ago

Antiarchitect commented 4 years ago

I'm using official docker image of graphql-faker apisguru/graphql-faker:v2.0.0-rc.19 and getting this:

Default file ./schema_extension.faker.graphql is used. Specify [file] parameter to change.
Error: Can't get introspection from https://api-voronkov-rename-cache-folders.stages.xxx/graphql:
request to https://api-voronkov-rename-cache-folders.stages.xxx/graphql failed, reason: certificate has expired
    at graphqlRequest.then.catch (/usr/local/share/.config/yarn/global/node_modules/graphql-faker/dist/utils.js:31:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

But from the local machine all is ok:

graphql-faker --extend https://api-voronkov-rename-cache-folders.stages.xxx/graphql
Default file ./schema_extension.faker.graphql is used. Specify [file] parameter to change.

βœ” Your GraphQL Fake API is ready to use πŸš€
  Here are your links:

  ❯ Interactive Editor: http://localhost:9002/editor
  ❯ GraphQL API:        http://localhost:9002/graphql
IvanGoncharov commented 4 years ago

Fixed in #118 @Antiarchitect Big thanks for PR πŸ‘