cloudflare-rs
cloudflare-rs copied to clipboard
listzone may return null id/email for owner field
I got ListZone response returned from cloudflare with null value for owner.id and owner.email. The situation causes list zone always fail.
I'm also meet with this problem. @jeff-hiner can you please help to check and merge this PR?
I'm trying to ask around to see if that's intentional, because I don't think those fields should be blank. Are you seeing this on a specific account?
Yes, this is on my personal account, as well as on another account that we use on another project. This is a JSON that i dumped before it got parsed:
...
"multiple_railguns_allowed": false
},
"owner": {
"id": null,
"type": "user",
"email": null
},
"account": {
"id": "16e2b4933axxxxxxxxxxxxxxxxxxxxxx",
...
Also, docs states that all of this fields are not required, and therefore can be null:
I've asked internally, and this appears to be an API bug. If the owner
field is present, it should have an id
and name
.
Hmm, interesting. Thanks for investigation. Do you have any ETA when this expected to be fixed?
I don't have an ETA on this, but the upstream bug has been acknowledged and the work is ticketed out.