Code Monkey home page Code Monkey logo

Comments (6)

collingreen avatar collingreen commented on May 23, 2024 4

It would be helpful to check types on config values -- for example, memory_size, parameter_depth, timout_seconds, etc all need to be numbers, not strings. If they are strings, zappa will zip your project, upload it, then fail with an error:

Parameter validation failed:
Invalid type for parameter MemorySize, value: 128, type: <type 'unicode'>, valid types: <type 'int'>, <type 'long'>

from zappa.

tipu avatar tipu commented on May 23, 2024

on it.

from zappa.

tipu avatar tipu commented on May 23, 2024

I'm going to put the addition for this in zappa/cli.py:create_package(). Does this seem like a suitable place?

from zappa.

Miserlou avatar Miserlou commented on May 23, 2024

This would probably be better to but in zappa.py so that it could be used by other clients. We should expect that this function may grow over time.

from zappa.

tipu avatar tipu commented on May 23, 2024

@Miserlou zappa/zappa.py appears to be unaware of the zappa_settings reference that zappa/cli holds onto. Should I inject the zappa_settings into zappa/zappa.py or should I implement it in the update method within ZappaCLI? The zappa_settings is necessary to access the app_function key of zappa_settings.json.

from zappa.

Miserlou avatar Miserlou commented on May 23, 2024

This recently happened to somebody in IRC:

[1471899440322] No module named your_module
[1471899440322] No module named your_module: ImportError
Traceback (most recent call last):
 File "/var/task/handler.py", line 345, in lambda_handler
   return LambdaHandler.lambda_handler(event, context)
 File "/var/task/handler.py", line 122, in lambda_handler
   return cls().handler(event, context)
 File "/var/task/handler.py", line 317, in handler
   raise e
ImportError: No module named your_module

Could we check if the specified module exists before uploading?

from zappa.

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.