Zappa is a Python tool to build and deploy server-less, event-driven Python applications (including, but not limited to, WSGI web apps) on AWS Lambda + API Gateway.
Questions tagged [zappa]
203 questions
0
votes
1 answer
strange closure behaviour
I have got this program(simplified from my actual program) where I am unable to access all variable from the method of the object passed to view, though I can access it from get. Am I missing something here?
all = ['hello',…
![](../../users/profiles/1868547.webp)
Haraakiri Yaar
- 81
- 3
0
votes
1 answer
NodeJS Zappa using @response, @request in called functions
I can do this:
require('zappajs') ->
@get '/':-> console.log(@response)
but when I try this
require('zappajs') ->
@get '/': -> foo()
foo = ->
console.log(@response)
@response is undefined. So obviously 'this' is now out of…
![](../../users/profiles/1780102.webp)
stukennedy
- 1,028
- 8
- 23
0
votes
3 answers
zappa js @include coffeescript method doesn't work
I want to be able to call coffeescript and js functions declared in other files from a zappa app. I can't get it to work at all.
I tried using @include as explained on the zappajs crashcourse ...
but I get
TypeError: Object # has no method…
![](../../users/profiles/1780102.webp)
stukennedy
- 1,028
- 8
- 23
0
votes
1 answer
how to make zappajs to handle all requests
There is app.all for express to handle all methods for any endpoint like this
app.all '*', (req, res) ->
# code goes here
I could not find equivalent one for zappa. It throws error if I try @all.
What is the equivalent on in zappajs?
![](../../users/profiles/1601744.webp)
ravi.chunduru
- 186
- 2
- 5
0
votes
1 answer
embedded coffeescript in a coffeekup view in zappa
Is there a way to pass variable values (just for reading, obviously) from the app to the embedded coffeescript in a coffeekup view (in zappa), such as:
.... @render 'index', myVar:"something"
@view index: ->
coffeescript ->
$(document).ready…
![](../../users/profiles/683201.webp)
Eve Freeman
- 30,388
- 2
- 79
- 95
-1
votes
1 answer
OSError: [Errno 28] No space left on device - AWS Lambda + Zappa
I have deployed an application on AWS lambda using Zappa. I get the error in zappa tail - OSError: No space left on device.
The file size is large so I am using S3 as well. Below is my zappa settings.
{"dev": {
"app_function":…
![](../../users/profiles/12846613.webp)
Akshit Bansal
- 19
- 6
-1
votes
1 answer
I am getting error while while using "zappa init'
I am using python 3.8 and zappa 0.51.0. I have installed zappa in a virtual environment and created AWS account also but when I am trying to command "zappa init" its showing error given below
(.env) D:\rough work\crud>zappa init
Traceback…
![](../../users/profiles/13711395.webp)
Dwipal shrirao
- 1
- 2
-1
votes
1 answer
im trying to run "zappa init" on my ubuntu server on aws also conda is installed.... when i init zappa its asking for "active virtual env"
Oh no! An error occurred! :(
==============
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/zappa/cli.py", line 2693, in handle
sys.exit(cli.handle())
File…
![](../../users/profiles/8502199.webp)
rahil shaikh
- 11
- 1