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

Doesn't get proper user that exists in the LS customers list. #128

Closed
yuri-karkh opened this issue Sep 9, 2024 · 5 comments
Closed

Doesn't get proper user that exists in the LS customers list. #128

yuri-karkh opened this issue Sep 9, 2024 · 5 comments

Comments

@yuri-karkh
Copy link

"@lemonsqueezy/lemonsqueezy.js": "^3.3.0",

import {
lemonSqueezySetup,
listCustomers,
} from '@lemonsqueezy/lemonsqueezy.js'

const { error, data } = await listCustomers({
filter: { email: user.email },
})

Doesn't get proper user that exists in the LS customers list.

Data is always empty for the new customers, for very old customers this works fine. How this depends? Could u please help?

@brankoconjic
Copy link
Collaborator

Hi,

I could not reproduce this on my end, so I assume this has to be cache-related in your app.

Try using curl to fetch that. https://docs.lemonsqueezy.com/api/customers#list-all-customers

@yuri-karkh
Copy link
Author

yuri-karkh commented Sep 9, 2024

Hi @brankoconjic I just checked via postman and it looks the same, I also double checked that user exists in the list of customers in LS. For my user it fetch correctly via filter as it is very very old user. Please see attached.
screen1
screen2
screen3

@yuri-karkh
Copy link
Author

hey guys, any help? Still reproducable my side...

@brankoconjic
Copy link
Collaborator

I tested again using multiple accounts and couldn’t replicate the issue.

Ensure that you’re using the correct API key for the mode (Test or Live), as each mode requires a different key. If the problem persists, please reach out to hello@lemonsqueezy.com to open a support ticket.

@brankoconjic brankoconjic closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
@yuri-karkh
Copy link
Author

I tested again using multiple accounts and couldn’t replicate the issue.

Ensure that you’re using the correct API key for the mode (Test or Live), as each mode requires a different key. If the problem persists, please reach out to hello@lemonsqueezy.com to open a support ticket.

@brankoconjic I regenerated the API key and it is solved, thanks for pointing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants