Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load favicon.ico in local dev #263

Open
trevor-scheer opened this issue Jun 20, 2023 · 0 comments
Open

Failed to load favicon.ico in local dev #263

trevor-scheer opened this issue Jun 20, 2023 · 0 comments

Comments

@trevor-scheer
Copy link
Member

Given the simplest of Apollo Server instances, run Sandbox and inspect the browser's logs for:

Failed to load resource: the server responded with a status of 400 (Bad Request)
:4000/favicon.ico:1

Repro:

npm init -y
npm i @apollo/server graphql
touch index.js
// index.js
import { ApolloServer } from "@apollo/server";
import { startStandaloneServer } from "@apollo/server/standalone";

const server = new ApolloServer({
  typeDefs: `#graphql
    type Query {
      hello: String
    }
  `,
});

startStandaloneServer(server, { listen: { port: 4000 } }).then(() => {
  console.log("Server running at http://localhost:4000");
});
node index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant