Git Product home page Git Product logo

Comments (4)

methane avatar methane commented on July 29, 2024

I suppose you closed connection twice.
But I can't confirm since your code is not reproducible code.
No one but you can investigate your problem is caused by Tornado-MySQL or your code.

from tornado-mysql.

ishansharma29 avatar ishansharma29 commented on July 29, 2024

I think the issue is with Tornado-MySQL because the lines I've written, these are the only lines of code that are being executed and throwing this error. The error is thrown when it executes conn.close() .

In my code, I don't see the connection being closed at any point other then the last line.
Can you try to replicate this issue? I think to do so, all you have to do is change the db='camera' (with your database name) line and complete the insert query I've left half written.

I tried to check Tornado-MySQL code, and I couldn't find any point where the connection is closed. I don't know if making the connection async is making the connection go away or there is an issue with my code (which I really doubt so) or the issue is with Tornado-MySQL.

from tornado-mysql.

methane avatar methane commented on July 29, 2024

I think to do so, all you have to do is change the db='camera' (with your database name) line

OK, but...

and complete the insert query I've left half written.

Why don't you do?

And there is need to make your code to valid Tornado application.
I don't use tornado for a long time.
I need to read doc to know how to run coroutine in simple script.

Additionally, if I can't reproduce, I waste my energy and time.

from tornado-mysql.

methane avatar methane commented on July 29, 2024

I can't reproduce it with this script.
https://gist.github.com/methane/068a269fc804fa2e39a53be3c55e275a

from tornado-mysql.

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.