Git Product home page Git Product logo

Comments (4)

rishabhpoddar avatar rishabhpoddar commented on August 12, 2024 1

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.

EricChristensen avatar EricChristensen commented on August 12, 2024 1

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.

sattvikc avatar sattvikc commented on August 12, 2024

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.

EricChristensen avatar EricChristensen commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.