-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Description
If function call ends up giving 503, nats-queue-worker
crashes with panic: runtime error: invalid memory address or nil pointer dereference
when trying to do callback if X-Callback-Url
is set.
Expected Behaviour
It doesn't crash.
Current Behaviour
It crashes and pod dies.
Possible Solution
See #89
Steps to Reproduce (for bugs)
- Deploy OpenFaaS in GCP using marketplace (default timeout settings).
- Create function with the following handle, based on
python3
template
import time
def handle(req):
t = 60
time.sleep(t)
print(f"Slept for {t} seconds")
- Deploy function using default timeout settings
faas up -f sleep.yml
- Do an async function call with callback to e.g. https://requestbin.com and watch the kubernetes logs for the queue worker and wait for the following error
queueworker_crash.txt
Context
It started crashing some functions I thought failed for another reason.
Your Environment
Kubernetes
Metadata
Metadata
Assignees
Labels
No labels