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

stats.getDomain returns 400 with more then one event #208

Closed
JosBouma opened this issue Nov 11, 2021 · 1 comment
Closed

stats.getDomain returns 400 with more then one event #208

JosBouma opened this issue Nov 11, 2021 · 1 comment

Comments

@JosBouma
Copy link

JosBouma commented Nov 11, 2021

This works:

mg.stats.getDomain( 'tagetdomain.com', { event: ['accepted'], } );

This does not:

mg.stats.getDomain( 'tagetdomain.com', { event: ['delivered', 'accepted'], } );

Response:
https://api.eu.mailgun.net/v3/tagetdomain.com/stats/total?event=delivered%2Caccepted 400 (Bad Request)

@olexandr-mazepa
Copy link
Collaborator

Hello @JosBouma
I did some improvements in this area a couple of months ago.
This is the link to PR: #216.

Could you check any version higher than 4.1.2 and confirm that you have/ don't have this issue?

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