Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Errors when using opbeat with got@7 #179

@MartinKolarik

Description

@MartinKolarik

Opbeat's HTTP instrumentation breaks something in got@7 and causes random HTTP related errors. The code below should be enough to reproduce Error: write after end when visiting the webpage:

// opbeat setup here
// ...

const express = require('express');
const got = require('got');
const app = express();

app.use('/', (req, res) => {
	got('https://google.com').then(() => {
		res.send('Hello World!');
	});
});

app.listen(7777);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions