Comments (1)
We are aware about this issue, whilst it may be inconvenient, it's not broken. However, we recognise that this is not RESTfull and can be unintuitive and annoying for devs - we will eventually fix it when we finish our current roadmap of features.
The motivation for doing this in the first place was to distinguish between expected and non expected errors. Expected errors are due to user input mistakes (like entering a password that doesn't match the password policy during signup) vs unexpected errors are due to system failures like the db going down. 400 errors should only arise due to programming mistakes like not providing all required inputs to an API.
The reason to distinguish between expected and unexpected errors is in how devs can handle these. Expected errors need to be handled gracefully - usually by showing a specific error message to the end user. Whereas unexpected errors can show a generic something went wrong. In order to make this distinction clearer to devs, we had originally decided to follow this pattern.
Thanks for raising this issue.
from supertokens-python.
Related Issues (20)
- signOut not revoking session HOT 3
- Google Social Login: jwt.exceptions.ImmatureSignatureError: The token is not yet valid (iat) HOT 12
- Multiple `Set-Cookie` headers for the `sAccessToken` cookie
- Flask does not save user context across API lifecycle
- SECURITY_ISSUE : Http request context (response-headers) not getting popped up from the global flask context on request completion HOT 4
- httpx 0.26 HOT 1
- FastAPI setup issue HOT 6
- "User cannot be found" on dashboard for 3rd party users HOT 1
- Github thirdparty provider does not set raw_user_info_from_provider in get_user_info HOT 1
- Celery integration HOT 1
- Update how fake emails are generated HOT 2
- Update aiosmtplib HOT 1
- support for pyramid? HOT 1
- consume_code_post() takes 6 positional arguments but 7 were given HOT 3
- param order mismatch in generate_fake_email HOT 2
- Feature: Support extensible custom third party provider instances HOT 8
- syncio functions do not work in FastAPI HOT 4
- FastAPI performance hit? HOT 9
- python sdk delete_user throwing general error with no method HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supertokens-python.