8000 sqlalchemy.exc.InvalidRequestError: Object '<User at 0x7fbe82f13be0>' is already attached to session 'n' · Issue #4 · kantancoding/FlaskDS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sqlalchemy.exc.InvalidRequestError: Object '<User at 0x7fbe82f13be0>' is already attached to session 'n' #4

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 u 8000 p for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kamalkoranga opened this issue Mar 28, 2023 · 1 comment

Comments

@kamalkoranga
Copy link
kamalkoranga commented Mar 28, 2023

I've getting error in deleting user.
image
while using cascade too...

Route for deleting user is :
image

@GmGniap
Copy link
GmGniap commented Jul 13, 2023

I think if you're running on MacOS , change port number to greater than default 5000.
In your server.py script , change as below.

if __name__ == "__main__":
    app.run(port= 8000, debug=True)

I hope it'll solve your problem. Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0