poscat0x04 / wgcf-teams

BSD 3-Clause "New" or "Revised" License
75 stars 13 forks source link

Failed to parse WarpPolicy: "exclude" field is missing. #7

Closed gdyr closed 9 months ago

gdyr commented 9 months ago

When the WARP Client device profile's split tunneling feature is set to include rather than exclude, the exclude field is not present in the warp policy JSON response, and so serde fails to deserialize it into the WarpPolicy struct.

Resultant error:

Error: Failed to parse the result returned by cloudflare

Caused by:
    0: error decoding response body: missing field `exclude` at line 1 column 1038
    1: missing field `exclude` at line 1 column 1038