cloudflare-rs icon indicating copy to clipboard operation
cloudflare-rs copied to clipboard

listzone may return null id/email for owner field

Open xgzeng opened this issue 2 years ago • 6 comments

I got ListZone response returned from cloudflare with null value for owner.id and owner.email. The situation causes list zone always fail.

xgzeng avatar Feb 27 '23 15:02 xgzeng

I'm also meet with this problem. @jeff-hiner can you please help to check and merge this PR?

heavycharged avatar Aug 11 '23 12:08 heavycharged

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?

jeff-hiner avatar Aug 11 '23 23:08 jeff-hiner

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:

image

heavycharged avatar Aug 13 '23 15:08 heavycharged

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.

jeff-hiner avatar Aug 15 '23 15:08 jeff-hiner

Hmm, interesting. Thanks for investigation. Do you have any ETA when this expected to be fixed?

heavycharged avatar Aug 16 '23 08:08 heavycharged

I don't have an ETA on this, but the upstream bug has been acknowledged and the work is ticketed out.

jeff-hiner avatar Aug 16 '23 14:08 jeff-hiner