Comments (4)
Where are you calling this function? In your custom application API, or in one of our overrides?
I added the try catch around the delete user and printed the exception which was completely empty. Before adding the explicit
What do you mean by before adding the explicit (return ok response)?
The response we were getting was
This is the response from the API? Our sdk does not translate GeneralException to this type of response from our APIs. GeneralExcexptions are just like python exceptions that get propagated to your app's error handler and however you deal with them, is up to you.
Maybe you can make a demo app showcasing this issue? Or post your api code here so we get clarity?
from supertokens-python.
Will follow up on this by the end of the week and address your questions. We are switching over to passwordless only from email this week so I will be circling back to the delete function as part of that.
from supertokens-python.
Hi @EricChristensen,
I was unable to reproduce this issue, maybe I am missing something. I created a fastAPI app and then added an endpoint from which I called the delete_user. And things seem to work fine.
@app.get("/delete")
async def delete_user_api():
await delete_user('<some user id>')
return {
"status": "OK",
}
Would it be possible to provide a minimal setup that reproduces this issue? Alternatively, I would also like you to add try/except around your delete call and help me with the type and msg of the exception.
from supertokens-python.
I added the try catch around the delete user and printed the exception which was completely empty. Before adding the explicit
return {
"status": "OK",
}
The response we were getting was
{
"status": "GENERAL_ERROR",
"message": ""
}
Which makes sense based on the last two log lines from the error output
2024-05-15T17:19:20.330Z raise GeneralError(msg) from None
2024-05-15T17:19:20.330Z supertokens_python.exceptions.GeneralError
It looks like the even though this error occurs, the user does get successfully deleted, it just takes a little bit of time to take affect.
from supertokens-python.
Related Issues (20)
- 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
- 200 HTTP code on error HOT 1
- 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
- Support asynchronous origin function HOT 1
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.