title: Graphql Yoga Playground with Lambda - "Server cannot be reached"
body: <p>I'm in the process of setting a graphql endpoint with servlerless/ lambda and am receiving an error when trying to connect to the graphql playground that comes with graphql-yoga. When I go to my route that has the playground (<code>/playground</code>) it launches the playground interface however it just says:</p>
  
  <blockquote>
    <p>Server cannot be reached</p>
  </blockquote>
  
  <p>In the top right of the playground. It's worth noting i'm using the <code>makeRemoteExecutableSchema</code> utility to proxy to another graphql endpoint (which is my CMS called Prismic). I don't believe this is the issue as I have successfully connected to it with the playground when testing on a normal express server. </p>
  
  <p>Here is the code in my <strong>handler.js</strong></p>
  
  <pre><code>'use strict';
  
  const { makeRemoteExecutableSchema } = require('graphql-tools');
  const { PrismicLink } = require("apollo-link-prismic");
  const { introspectSchema } = require('graphql-tools');
  const { ACCESS_TOKEN, CMS_URL } = process.env;
  const { GraphQLServerLambda } = require('graphql-yoga')
  
  const lambda = async () =&gt; {
    const link = PrismicLink({
      uri: CMS_URL,
      accessToken: ACCESS_TOKEN
    });
  
    const schema = await introspectSchema(link);
  
    const executableSchema = makeRemoteExecutableSchema({
      schema,
      link,
    });
  
    return new GraphQLServerLambda({ 
      schema: executableSchema,
      context: req =&gt; ({ ...req })
    });
  }
  
  exports.playground = async (event, context, callback) =&gt; {
    context.callbackWaitsForEmptyEventLoop = false;
    const graphQl = await lambda();
    return graphQl.playgroundHandler(event, context, callback);
  };
  </code></pre>
  
  <p>I have followed <a href="https://itnext.io/building-a-graphql-api-using-graphql-yoga-lambda-and-mongodb-c0c195621f47" rel="noreferrer">this</a> guide for getting it running up till here and am fairly sure i've followed similar steps for what applies to what i'm trying to do but can't seem to figure out where i've gone wrong.</p>
  
  <p>Thanks,</p>