-
-
Notifications
You must be signed in to change notification settings - Fork 969
Closed
Labels
bugSomething does not work as it shouldSomething does not work as it shouldregressionSomething does not work anymoreSomething does not work anymore✭ help wanted ✭
Description
const got = require('got');
(async () => {
try {
// This works as expected
// await got('https://example.com', {responseType: 'json'}).json();
// This is incorrect
await got('https://example.com').json();
} catch (error) {
console.log(error.name);
// Actual: SyntaxError
// Expected: Got.ParseError
}
})();
Metadata
Metadata
Assignees
Labels
bugSomething does not work as it shouldSomething does not work as it shouldregressionSomething does not work anymoreSomething does not work anymore✭ help wanted ✭