Closed
Description
See the recreation repository here
Below is the pasted readme which should contain all the necessary information.
ogs-bug-example
Description
A repostiory to demonstrate a bug in the open-graph-scraper package above the version 4.11.1.
Steps to reproduce
- Clone this repository
- Run
yarn
- Run
yarn test
- Watch the program segfault
Expected behavior
The program should not segfault.
Actual behavior
The program segfaults.
Notes
If you start the server with yarn start
and just go to http://localhost:3555, the code doesn't segfault. It only segfaults when you run the test.
I'm not sure if this means that supertest or jest is at fault, but I'm submitting an issue anyways.
Environment
- Node.js version: v18.14.0 via nvs
- OS: Ubuntu 22.04 WSL via Windows 11 pro 22h2 2261.1105
- open-graph-scraper version: 5.0.5
- jest version: 29.4.1
- supertest version: 6.3.3
- typescript version: 4.9.5
Additional info
Installing open-graph-scraper 4.11.1 and running the test will not segfault. See branch 4.11.1
Metadata
Metadata
Assignees
Labels
No labels