-
-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working when using module
in Python
#1465
Comments
Note: it might be the same kind of error as #1381, but I am using a |
#1381 was reverted in v8.8.0, if you are sure that you are using that version your issue should be a different one. if you could digg into this problem and put up a PR that would be great. if not, a repro would be very helpful as well. |
@dnalborczyk ok created a PR based on what I modified locally to make it work. Not sure if it should be that simple, but it works |
Bug Report
Current Behavior
When running
sls offline
and accessing the url I have the following error:Sample Code
my_module/handler.py
Expected behavior/code
Should work just line when not using the
module
in serverlessEnvironment
serverless
version: 2.66.2serverless-offline
version: 8.8.0node.js
version: 12.22.6OS
: MacOs 12.4optional, if you are using any of the following frameworks to invoke handlers
python
version: 3.9Possible Solution
I'm guessing when trying to find handler it should take into account the
module
if specified but it currently doesn't?Additional context/Screenshots
The text was updated successfully, but these errors were encountered: