apollographql / apollographql/embeddable-explorer

Failed to load `favicon.ico` in local dev

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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:
```sh
npm init -y
npm i @apollo/server graphql
touch index.js
```

```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");
});
```

```sh
node index.js
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report with the supplied npm setup, index.js, and node index.js command, then inspect the browser logs for the /favicon.ico 400 response. Trace how the local Sandbox request is handled and consider the issue complete when the favicon request no longer produces the reported 400 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.