google-api-nodejs-client
google-api-nodejs-client copied to clipboard
Error: error:1E08010C:DECODER routines::unsupported (ERR_OSSL_UNSUPPORTED)
Environment details
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103
Binaries:
Node: 18.14.0
npm: 9.3.1
Yarn: 1.22.19
pnpm: 6.32.10
Relevant packages:
next: 13.1.6
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
Steps to reproduce
- Google Spreadsheet with Spreadsheet API enabled and set up as follows:
const auth = new google.auth.JWT(
'<EMAIL>.iam.gserviceaccount.com',
undefined,
'<SECRET>',
['https://www.googleapis.com/auth/spreadsheets.readonly'],
)
const sheets = google.sheets({ version: 'v4', auth })
const response = await sheets.spreadsheets.values.get({
spreadsheetId: '<ID',
range: '<RANGE>',
})
console.log(response)
- Error displays in the console.
Error: error:1E08010C:DECODER routines::unsupported
Issue filed initially in Next.js (https://github.com/vercel/next.js/issues/45578)
Have any updates for this?