apache / apache/openwhisk

Web function 400 Bad Request

Open
#5,456 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

Sir,
I'm getting 400 badgateway error with my NodeJS function (NodeJS 16 runtime)
My OpenWhisk cluster is fine, deployed based on K8s, no errors occur.
![image](https://github.com/apache/openwhisk/assets/54056797/e0751035-4fe1-4deb-b668-810ce1ecd1f6)
Of course, I can also directly use the wsk command line to trigger my test function:
![image](https://github.com/apache/openwhisk/assets/54056797/baf8249c-9d62-4b51-b9c4-68aa0bc39dcb)
This seems like everything is working fine, however I am unable to access my function via HTTP request, I have created the relevant POST request API and have HTTP access via the configured 31005 port:
![image](https://github.com/apache/openwhisk/assets/54056797/55244977-a8d3-4b66-bfc1-5ada235883f5)
![image](https://github.com/apache/openwhisk/assets/54056797/755adde2-885d-49c7-87fa-f82c976be090)
Therefore, I would like to ask how to adjust my system so that the following HTTP access errors will not occur.
![image](https://github.com/apache/openwhisk/assets/54056797/2f1dbf15-3067-40ab-b3ae-5eef59add9e5)
My research team and I have encountered this obvious problem and would like to ask some experts for advice.
@style95

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.