2021-09-03 06:57:01 +00:00
|
|
|
name: Bug report
|
2024-01-02 09:58:20 +00:00
|
|
|
description: File a bug report for puppeteer or puppeteer-core
|
2021-09-03 06:57:01 +00:00
|
|
|
title: '[Bug]: '
|
|
|
|
labels: [bug]
|
|
|
|
body:
|
|
|
|
- type: markdown
|
|
|
|
attributes:
|
2023-01-10 10:35:53 +00:00
|
|
|
value: >
|
2022-11-08 09:28:35 +00:00
|
|
|
### Thanks for taking the time to fill out this bug report!
|
2023-01-10 10:35:53 +00:00
|
|
|
|
|
|
|
**Before filling out this report**, please check our
|
|
|
|
[Troubleshooting](https://pptr.dev/troubleshooting) guide for solutions
|
|
|
|
to common issues.
|
2024-01-02 09:58:20 +00:00
|
|
|
|
|
|
|
If your issue is not about `puppeteer` or `puppeteer-core` packages, check out
|
|
|
|
other issue templates at https://github.com/puppeteer/puppeteer/issues/new/choose.
|
2023-01-10 10:35:53 +00:00
|
|
|
- id: mvce
|
|
|
|
type: textarea
|
|
|
|
attributes:
|
|
|
|
label: Minimal, reproducible example
|
|
|
|
description: >
|
|
|
|
Provide a [minimal, reproducible
|
2023-06-29 11:10:22 +00:00
|
|
|
example](https://stackoverflow.com/help/minimal-reproducible-example) of
|
|
|
|
the bug you are facing.
|
|
|
|
|
|
|
|
This must not include external libraries since we will run this in a
|
|
|
|
[hermetic](https://www.oreilly.com/library/view/selenium-design-patterns/9781783982707/ch03s03.html#:~:text=The%20Hermetic%20test%20pattern%20is,be%20avoided%20at%20all%20costs.)
|
|
|
|
environment. You may use Node.js modules.
|
|
|
|
|
2023-01-10 10:35:53 +00:00
|
|
|
*No need for backticks — this automatically gets formatted into code.*
|
|
|
|
render: TypeScript
|
2023-01-11 11:33:53 +00:00
|
|
|
placeholder: |
|
|
|
|
import puppeteer from 'puppeteer'; // TS/ESM are all supported.
|
|
|
|
|
|
|
|
(async () => {
|
|
|
|
const browser = await puppeteer.launch();
|
|
|
|
const page = await browser.newPage();
|
2023-06-29 14:00:09 +00:00
|
|
|
try {
|
|
|
|
// Do something.
|
|
|
|
} catch {
|
|
|
|
throw new Error('Something went wrong');
|
|
|
|
}
|
2023-01-11 11:33:53 +00:00
|
|
|
await browser.close();
|
|
|
|
})();
|
2021-09-03 06:57:01 +00:00
|
|
|
validations:
|
|
|
|
required: true
|
2023-01-10 10:35:53 +00:00
|
|
|
- id: error
|
|
|
|
type: input
|
2021-09-03 06:57:01 +00:00
|
|
|
attributes:
|
2023-01-10 10:35:53 +00:00
|
|
|
label: Error string
|
|
|
|
description: >
|
2023-01-11 11:33:53 +00:00
|
|
|
Provide the bug's error. For example, `throw new Error('Something went
|
2023-06-29 11:10:22 +00:00
|
|
|
wrong')` would have the error `Something went wrong`.
|
|
|
|
|
|
|
|
**If the script does not throw**, write `no error` (case insensitive).
|
2023-01-11 11:33:53 +00:00
|
|
|
placeholder: Something went wrong
|
2021-09-03 06:57:01 +00:00
|
|
|
validations:
|
|
|
|
required: true
|
2023-06-29 11:10:22 +00:00
|
|
|
- id: behavior
|
|
|
|
type: checkboxes
|
|
|
|
attributes:
|
|
|
|
label: Bug behavior
|
|
|
|
description: >
|
|
|
|
How does the bug behave? Does it happen very rarely (flaky)? If there is
|
|
|
|
a PDF problem, make sure the script writes the PDF somewhere in the
|
2023-06-29 14:00:09 +00:00
|
|
|
current working directory.
|
2023-06-29 11:10:22 +00:00
|
|
|
options:
|
|
|
|
- label: Flaky
|
|
|
|
- label: PDF
|
|
|
|
- id: background
|
|
|
|
type: textarea
|
|
|
|
attributes:
|
|
|
|
label: Background
|
|
|
|
description: >
|
|
|
|
Optional. Briefly describe your use-case that led to this issue. This can help us
|
|
|
|
understand the general situation to provide better, higher quality
|
|
|
|
feedback and help others in similar situations.
|
|
|
|
placeholder: |
|
|
|
|
I've been trying to ...
|
|
|
|
- id: expectation
|
|
|
|
type: textarea
|
|
|
|
attributes:
|
|
|
|
label: Expectation
|
|
|
|
description: What are you expecting the code to do?
|
|
|
|
placeholder: |
|
|
|
|
I expected ...
|
|
|
|
validations:
|
|
|
|
required: true
|
|
|
|
- id: reality
|
|
|
|
type: textarea
|
|
|
|
attributes:
|
|
|
|
label: Reality
|
|
|
|
description: What actually happens?
|
|
|
|
placeholder: |
|
|
|
|
In reality, ...
|
|
|
|
validations:
|
|
|
|
required: true
|
2023-01-10 10:35:53 +00:00
|
|
|
- id: puppeteer-configuration
|
|
|
|
type: textarea
|
|
|
|
attributes:
|
2023-07-13 08:25:07 +00:00
|
|
|
label: Puppeteer configuration file (if used)
|
2023-01-10 10:35:53 +00:00
|
|
|
description: >
|
|
|
|
Copy and paste your [configuration
|
2023-07-13 08:25:07 +00:00
|
|
|
file](https://pptr.dev/guides/configuration/) (if used).
|
2023-06-29 14:00:09 +00:00
|
|
|
|
|
|
|
*No need for backticks — this automatically gets formatted into code.*
|
2023-01-10 10:35:53 +00:00
|
|
|
render: TypeScript
|
|
|
|
- id: puppeteer-version
|
|
|
|
type: input
|
2021-09-03 06:57:01 +00:00
|
|
|
attributes:
|
2023-01-10 10:35:53 +00:00
|
|
|
label: Puppeteer version
|
2023-06-29 14:00:09 +00:00
|
|
|
description: >
|
2023-01-10 10:35:53 +00:00
|
|
|
What version of Puppeteer are you running? *This must be a valid semver
|
2023-07-12 07:14:30 +00:00
|
|
|
tag, for example, `20.8.1`.*
|
2023-01-10 10:35:53 +00:00
|
|
|
validations:
|
|
|
|
required: true
|
|
|
|
- id: node-version
|
|
|
|
type: input
|
|
|
|
attributes:
|
|
|
|
label: Node version
|
2023-06-29 14:00:09 +00:00
|
|
|
description: >
|
2023-01-10 10:35:53 +00:00
|
|
|
What supported version of Node.js are you running? *This must be a valid
|
2023-07-12 07:14:30 +00:00
|
|
|
semver tag, for example, `20.3.1`.*
|
2021-09-03 06:57:01 +00:00
|
|
|
validations:
|
|
|
|
required: true
|
2023-01-10 10:35:53 +00:00
|
|
|
- id: pkg-mgr
|
|
|
|
type: dropdown
|
2021-09-03 06:57:01 +00:00
|
|
|
attributes:
|
2023-01-10 10:35:53 +00:00
|
|
|
label: Package manager
|
|
|
|
description: What package manager are you running?
|
2021-09-03 06:57:01 +00:00
|
|
|
options:
|
2023-01-10 10:35:53 +00:00
|
|
|
- npm
|
|
|
|
- yarn
|
|
|
|
- pnpm
|
2021-09-03 06:57:01 +00:00
|
|
|
validations:
|
|
|
|
required: true
|
2023-01-10 10:35:53 +00:00
|
|
|
- id: pkg-mgr-version
|
|
|
|
type: input
|
2022-10-27 18:35:21 +00:00
|
|
|
attributes:
|
2023-01-10 10:35:53 +00:00
|
|
|
label: Package manager version
|
2023-06-29 14:00:09 +00:00
|
|
|
description: >
|
2023-01-10 10:35:53 +00:00
|
|
|
What version of the package manager are you running? *This must be a
|
2023-07-12 07:14:30 +00:00
|
|
|
valid semver tag, for example, `9.6.7`.*
|
2023-01-10 10:35:53 +00:00
|
|
|
validations:
|
|
|
|
required: true
|
|
|
|
- id: operating-system
|
|
|
|
type: dropdown
|
2021-09-03 06:57:01 +00:00
|
|
|
attributes:
|
2023-01-10 10:35:53 +00:00
|
|
|
label: Operating system
|
|
|
|
description: What supported operating system are you running?
|
|
|
|
options:
|
|
|
|
- Windows
|
|
|
|
- macOS
|
|
|
|
- Linux
|
|
|
|
validations:
|
|
|
|
required: true
|