Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

No helpful error output when giving bad arguments to function create (specifically --handler) #483

Closed
1 of 3 tasks
berndtj opened this issue May 26, 2018 · 0 comments
Closed
1 of 3 tasks

Comments

@berndtj
Copy link
Contributor

berndtj commented May 26, 2018

Bug Report

I created a simple function (hello.py) and was trying to test out the source directory support:

$ tree hello
hello
└── hello.py

Where hello.py is the same as from the python examples.

I created a function as so:

dispatch create function hello-py-dir ./hello --handler hello.handler --image python3

Do you see the error? I didn't. The handler arg is wrong. It should be "hello.handle". I had an extra "r".

The result is a function which gets stuck for a while in CREATING and then finally errors out. However there is nothing in the payload to indicate the cause of the error. The only log with anything useful was the function pod log, but even that gave a cryptic python traceback.

Expected behavior

Tell me know my handler is wrong. "Could not import function, is handler set correctly?"

Current behavior

Steps to reproduce

Impact

  • Low - Annoyance, but does not impact business or functionality
  • Medium - Issue can be worked around, but is causing pain
  • High - Blocker

Possible solution

Your Environment

  • Dispatch CLI version (or git commit):
  • Dispatch Chart version (or image[s] tag):
  • Operating System and version:
  • Kubernetes version (and distribution):
  • Etc (any other useful environmental information):
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants