Code Monkey home page Code Monkey logo

Comments (4)

wudi avatar wudi commented on June 9, 2024

I've fixed it!

Here the reason:
Atuin client send too large body more than Cloudflare default max size 100m and Nginx default 1m.
Client got 413 status response.

But client do not show the HTTP status 413. Use JSON deocde directly code as below.

if status.is_client_error() {
let error = resp.json::<ErrorResponse>().await?.reason;
bail!("Could not fetch history, client error: {error}.")

So, recommended to include the HTTP response status code in the error message. @ellie

from atuin.

wudi avatar wudi commented on June 9, 2024

Cloudflare Free plan upload limits: https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#upload-limits

from atuin.

pontusk avatar pontusk commented on June 9, 2024

I'm having this same issue. I would like to request that the error message better reflect what the JSON error response says, so that I can debug this on my server. I have logs set up and they say Shutting down gracefully ....

Running ATUIN_LOG=debug atuin sync -f on the client tells me the body is 166 bytes. I did increase the Nginx limit, but there might be some other limit that causes this. Still, a better error message would be helpful.

from atuin.

MrCaturdayNight avatar MrCaturdayNight commented on June 9, 2024

This worked for me. Thanks @wudi

I added this to my server entry for atuin in nginx. All is well now.

client_max_body_size 10M;

from atuin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.