Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting TypeError: invalid 'instanceof' operand KeyObject error while adding member using Ghost Admin API #20409

Closed
1 task done
developervijay7 opened this issue Jun 19, 2024 · 2 comments
Labels
support request [triage] A support request that belongs on the forum https://forum.ghost.org/c/help

Comments

@developervijay7
Copy link

Issue Summary

I am getting TypeError: invalid 'instanceof' operand KeyObject error while adding member using Ghost Admin API

Steps to Reproduce

export async function addMember(email) {
return await admin.members.add({"members":[{"email": email}]}, {send_email: true, email_type: 'subscribe'})
.then(response => console.log(response))
.catch(error => console.error(error))
}

Ghost Version

5.84.1

Node.js Version

18

How did you install Ghost?

Local

Database type

MySQL 8

Browser & OS version

No response

Relevant log / error output

No response

Code of Conduct

  • I agree to be friendly and polite to people in this repository
@github-actions github-actions bot added the needs:triage [triage] this needs to be triaged by the Ghost team label Jun 19, 2024
@kevinansfield
Copy link
Member

It sounds like this may be related to jsonwebtoken usage based on this upstream issue auth0/node-jsonwebtoken#950

However the version in question was updated in our Admin-API package over a year ago and we haven't had any other reports of issues. @developervijay7 your issue doesn't provide any details on the environment you're using the Admin-API package in or how you're instantiating it etc so it's difficult to reproduce or help.

As this sounds environment related please open a support topic on our forum. If there's a reproducible bug found after investigating then we can re-open an actionable issue. Thanks.

@kevinansfield kevinansfield added the support request [triage] A support request that belongs on the forum https://forum.ghost.org/c/help label Jun 20, 2024
@github-actions github-actions bot removed the needs:triage [triage] this needs to be triaged by the Ghost team label Jun 20, 2024
Copy link
Contributor

Hey @developervijay7 👋 We ask that you please do not use GitHub for help or support 😄. We use GitHub solely for bug-tracking and community-driven development.

Many questions can be answered by reviewing our documentation. If you can't find an answer then our forum is a great place to get community support, plus it helps create a central location for searching problems/solutions.

FYI: Many projects use issue templates to point you in the right direction. Reading the guidelines or issue templates before opening issues can save you and project maintainers valuable time.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request [triage] A support request that belongs on the forum https://forum.ghost.org/c/help
Projects
None yet
Development

No branches or pull requests

2 participants