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
2. Telefunc aborts function calls with bad arguments with status code 403 instead of 400
Telefunc generates shield functions for arguments automatically. But, passing bad arguments to an API call is not a 403 (forbidden) but a 400 (bad request) status code. The 403 status code lead to an hour-long wandering path that the problem was related to auth.
Auto-generated shield functions that protect function arguments should return / throw a 400 (bad request) status code instead of a 403 (permission denied) status code.
The text was updated successfully, but these errors were encountered:
samuelstroschein
changed the title
return 400 status code on bad arguments
return 400 status code on bad arguments instead of 403 status code
Jan 20, 2023
2. Telefunc aborts function calls with bad arguments with status code 403 instead of 400
Telefunc generates shield functions for arguments automatically. But, passing bad arguments to an API call is not a 403 (forbidden) but a 400 (bad request) status code. The 403 status code lead to an hour-long wandering path that the problem was related to auth.
Originally posted by @samuelstroschein in #56 (comment)
Proposal
Auto-generated shield functions that protect function arguments should return / throw a 400 (bad request) status code instead of a 403 (permission denied) status code.
The text was updated successfully, but these errors were encountered: