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.

Playground not loading on Serverless with Lambda Middleware version 1.3.6

See original GitHub issue

This issue pertains to the following package(s):

  • GraphQL Playground - Electron App
  • GraphQL Playground HTML
  • GraphQL Playground
  • GraphQL Playground Express Middleware
  • GraphQL Playground Hapi Middleware
  • GraphQL Playground Koa Middleware
  • GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

Ubuntu 16.04 and Windows 10

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

graphql-playground-middleware-lambda 1.3.6

What is the expected behavior?

The playground should load as usual.

What is the actual behavior?

On Servless Offline you get

{"domain":{"domain":null,"_events":{},"_eventsCount":1,"members":[]}}

or on AWS you get

{"message": "Internal server error"}

What steps may we take to reproduce the behavior?

  1. Remove yarn.lock in either graphql-playground-middleware-lambda/examples/basic or serverless-graphql/app-backend/rest-api
  2. Run yarn install or npm install
  3. Start with serverless deploy

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
schicklingcommented, Jan 6, 2018

This should be fixed with graphql-playground-middleware-lambda@1.3.9

0reactions
divyenduzcommented, Jan 6, 2018

I think I am facing an issue related to this, I am working on an example with following dependencies:-

"graphcool-binding": "1.3.1",
"graphql-yoga": "1.1.1",

The GraphQLServer from graphql-yoga gets a working middleware path - http://cdn.jsdelivr.net/npm/graphql-playground-react@1.3.20/build/static/js/middleware.js

But GraphQLServerLambda from graphql-yoga gets me a 404 middleware path - http://cdn.jsdelivr.net/npm/graphql-playground-react@1.3.7/build/static/js/middleware.js

I tried to setup this on local to attempt a fix (by tinkering graphql-playground-html version) by linking graphql-yoga, graphql-playground to in order but I think I am missing something there.

Also, I wanted to know why do we have different packages in graphql-playground, do they need to be linked separately for development? What are the upsides of doing it in this way over say having one release for graphql-playground itself and whenever a sub-package changes, we can bump up the version of graphql-playground. Just curious about the though process behind current structure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playground not loading on Serverless with Lambda ... - GitHub
This issue pertains to the following package(s): GraphQL Playground - Electron App GraphQL Playground HTML GraphQL Playground GraphQL ...
Read more >
graphql-playground-middleware-lambda - npm
GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).. Latest version: 1.7.24, ...
Read more >
apollo-server-lambda - npm Package Health Analysis - Snyk
Learn more about apollo-server-lambda: package health score, popularity, security, maintenance, versions and more.
Read more >
Deploying with AWS Lambda - Apollo GraphQL Docs
Setting up a project to work with Lambda isn't that different from a typical NodeJS project. First, install the apollo-server-lambda package:.
Read more >
Error: DynamoRole already exists - Serverless Framework
I am trying to run deploy-prod on the serverless-graphql dynamodb example. Serverless Framework is giving me the following error which I ...
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