Coder Social home page Coder Social logo

How to handle exceptions? about aiodynamo HOT 3 CLOSED

hennge avatar hennge commented on May 27, 2024
How to handle exceptions?

from aiodynamo.

Comments (3)

johnsyin avatar johnsyin commented on May 27, 2024

In fact, I was trying to do the same line of botocore
table.get_item(Key={'PK': pk, 'SK': sk})
to
await table.get_item(key={'PK': pk, 'SK': sk})

However, the request just hangs for about half a minute before it raises aiodynamo.http.base.RequestFailed. Perhaps there are something wrong in my client setup but it is hard to debug from the given exception

from aiodynamo.

johnsyin avatar johnsyin commented on May 27, 2024

Ok turns out I was missing yarn.URL('http://localhost:8000'), now I can see errors raising from aiodynamo.errors, it maybe worth to include the available errors in docs

from aiodynamo.

dimaqq avatar dimaqq commented on May 27, 2024

I think it would be nice to list all of https://github.com/HENNGE/aiodynamo/blob/master/src/aiodynamo/errors.py in documentation, specifically if the "expected" conditions are semantically significant.
I guess it has not been a priority so far 🤷🏿

from aiodynamo.

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.