cloudflare / cloudflare/cloudflare-rs

ApiError code does not support all error code values (should be u32)

Open
#218 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
316
Forks
111
PR merge metrics
No merged PRs in 30d

Description

Hi,

[ApiError::code](https://github.com/cloudflare/cloudflare-rs/blob/master/cloudflare/src/framework/response/apifail.rs#L11) is defined as u16. When I get an error code that is higher than 65,535 the error payload fails to deserialize and I am unable to inspect why a request failed.

I believe this should be redefined to u32.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.