Giter Site home page Giter Site logo

guillotina_batch's People

Contributors

lferran avatar masipcat avatar vangheem avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

masipcat

guillotina_batch's Issues

Batched file downloads

I'm having problems trying to download several files into a single @batch call

I couldn't really reproduce the same error that I'm getting on my guillotina installation yet, but the traceback that I get is:

Error on execution of view 6b92591c3d954c2eb98dde045d6b4da2
Traceback (most recent call last):
  File "/venv/lib/python3.6/site-packages/guillotina/traversal.py", line 231, in handler
    view_result = await self.view()
  File "/guillotina_batch/guillotina_batch/api.py", line 214, in __call__
    results.append(await self.handle(message))
  File "/guillotina_batch/guillotina_batch/api.py", line 123, in handle
    result = await self._handle(request, message)
  File "/guillotina_batch/guillotina_batch/api.py", line 200, in _handle
    'body': view_result.body.read().decode('utf-8'),
AttributeError: 'StreamResponse' object has no attribute 'body'

Unclear to me how we should read the body/contents from the StreamResponse to later place them in the @batch response.

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.