Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: doesn't work handling of custom status codes in runtimes/java-17.0 #5100

Open
2 tasks done
VladBurdo opened this issue Feb 10, 2023 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.
Milestone

Comments

@VladBurdo
Copy link

馃憻 Reproduction steps

  1. Add to the file Index.java the line:
    return res.json(Map.of("error", "bad_request"), 400);
  2. deploy this function.
  3. call the /executions endpoint

馃憤 Expected behavior

In response:

"status": "failed",
"statusCode": 400,
"response": "{\"error\":\"bad_request\"}",

馃憥 Actual Behavior

In response:

"status": "completed",
"statusCode": 200,
"response": "{\"error\":\"bad_request\"}",

馃幉 Appwrite version

Version 1.0.x

馃捇 Operating system

Linux

馃П Your Environment

No response

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@VladBurdo VladBurdo added the bug Something isn't working label Feb 10, 2023
@stnguyen90
Copy link
Contributor

@VladBurdo, thanks for raising this issue! 馃檹馃徏 This is a known issue that should hopefully be fixed in the next version of Appwrite.

@stnguyen90 stnguyen90 added the product / functions Fixes and upgrades for the Appwrite Functions. label Feb 10, 2023
@stnguyen90 stnguyen90 added this to the 1.3.0 milestone Feb 10, 2023
@lucasctd
Copy link
Contributor

I am having the same issue with PHP. Sometimes it sends the status I provided sometimes it doesn't.

@stnguyen90
Copy link
Contributor

@lucasctd, your problem is probably unrelated to this issue. Please join us on Discord or create a new issue with your code if you need help troubleshooting.

@stnguyen90 stnguyen90 modified the milestones: 1.3.0, 1.4.0 Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.
Projects
None yet
Development

No branches or pull requests

3 participants