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
Describe the bug
I'm trying to implement a simple service using Google Cloud Functions and Quarkus. But if I'm trying to return any status except 200, I will always get 200. E.G.:
Describe the bug
I'm trying to implement a simple service using Google Cloud Functions and Quarkus. But if I'm trying to return any status except 200, I will always get 200. E.G.:
Expected behavior
Status code 400
Actual behavior
Status code 200
To Reproduce
I've implemented a very small test service to reproduce the issue:
https://github.com/HardNorth/quarkus-google-functions-test/blob/main/src/main/java/net/hardnorth/test/quarkus/QuarkusTestService.java
You need to deploy it into Google Cloud. Because it works locally.
Configuration
Doesn't matter at all
Additional context
Based on what I see from code there is a missing part in
QuarkusHttpFunction.java
. E.G. for Amazon lambdas you bypass status and reason phrase explicitly:https://github.com/quarkusio/quarkus/blob/master/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpHandler.java#L91
But there is no such logic for Google Functions (you convert only headers):
https://github.com/quarkusio/quarkus/blob/master/extensions/google-cloud-functions-http/runtime/src/main/java/io/quarkus/gcp/functions/http/QuarkusHttpFunction.java#L145
The text was updated successfully, but these errors were encountered: