-
Notifications
You must be signed in to change notification settings - Fork 147
GetMailingList returns empty struct even though address is present #314
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
Comments
The response from the API is returning: {
"list": {
"access_level": "readonly",
"address": "[email protected]",
//...
} But the model you're trying to json serialise it into is type mailingListResponse struct {
MailingList MailingList `json:"member"`
} var resp mailingListResponse
err = response.parseFromJSON(&resp)
return resp.MailingList, err Which is probably why resp.MailingList is not being set. |
Is no one monitoring or maintaining this library? You'd expect someone to be doing this given it's an official repo. |
Looks like I introduced this error when I converted the library to local testing. I'll have a PR up in a few moments. |
I have the code:
I check and
err
isnil
. The mailing list returned is an empty struct with nothing set in it.When I check the log entry, it says:
"fetching mailing list [email protected]"
And as you can see, the mailing list '[email protected]' does indeed exist:
It is also returned in
ListMailingLists
with the same address, so I know it is correct.The text was updated successfully, but these errors were encountered: