You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deployment/troubleshooting.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Troubleshooting guide
2
2
3
+
The most common questions and user-issues can be resolved by reading the documentation carefully. After consulting this page, please work through the <ahref="https://github.com/openfaas/workshop/">OpenFaaS workshop</a> where many concepts are explained in detail with worked-examples.
4
+
3
5
## Asynchronous functions
4
6
5
7
Any function can be invoked asynchronously by changing the route on the gateway from `/function/<name>` to `/async-function/<name>`. A `202 Accepted` message will be issued in response to asynchronous calls.
@@ -35,6 +37,23 @@ The following additional request headers will be set when invoking the call back
35
37
| X-Duration-Seconds | Time taken in seconds to execute the original function call |
36
38
| X-Function-Status |[HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) returned by the original function call |
37
39
40
+
## Chaining / workflows
41
+
42
+
> See also <ahref="#Timeouts">Timeouts</a> (below)
43
+
44
+
When chaning or invoking another function, do this by calling it via the gateway either using the external IP address of the cluster / gateway, or by the internal DNS name.
45
+
46
+
A common user-error is to try to invoke the gateway from within a function using `http://127.0.0.1` or `localhost` - this address simply points back to the container the function is running in and is invalid.
47
+
48
+
> Note: If you access the gateway via its DNS entry/name then it is recommended to configure the gateway URL via an environmental variable (such as `gateway_url`) to make sure you can port the function between OpenFaaS providers.
49
+
50
+
### On Kubernetes
51
+
52
+
The default address for the gateway on Kubernetes is `http://gateway.openfaas:8080`.
53
+
54
+
### On Docker Swarm
55
+
56
+
The default address for the gateway is `http://gateway:8080`
0 commit comments