Skip to content

Error when parsing auto_connect field #9

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

Open
lincheney opened this issue Jan 3, 2024 · 0 comments
Open

Error when parsing auto_connect field #9

lincheney opened this issue Jan 3, 2024 · 0 comments

Comments

@lincheney
Copy link

I was receiving the following error after pasting in the JWT:

Error: Failed to parse the result returned by cloudflare

Caused by:
    0: error decoding response body: invalid value: integer `1800`, expected u8 at line 1 column 21801
    1: invalid value: integer `1800`, expected u8 at line 1 column 21801

The field that is causing issues is WarpPolicy::auto_connect.
If I change it to a f64, then it works.
(Maybe related? serde-rs/json#320)

Additionally, if I change

"auto_connect" : 0,
to be non-zero e.g. 1800, then that also causes the test to fail.
Not sure if this is the right approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant