Coder Social home page Coder Social logo

asyncio `RuntimeError` about ruia HOT 11 CLOSED

howie6879 avatar howie6879 commented on August 11, 2024
asyncio `RuntimeError`

from ruia.

Comments (11)

abmyii avatar abmyii commented on August 11, 2024 1

I find the speed of your merging amazing! Thanks again!

from ruia.

howie6879 avatar howie6879 commented on August 11, 2024

from ruia.

abmyii avatar abmyii commented on August 11, 2024

Found what causes the problem. If you use pass both html and url it triggers it, but randomly. This makes me think that there are times when a routine (vague term usage as I am not familiar with the definitions) gets ahead of another somehow or they are out of "alignment". Any ideas?

value = await Field.get_item(html=response.html, url=response.url)

from ruia.

abmyii avatar abmyii commented on August 11, 2024

I think this only happens when there are many concurrent actions (I've set mine to 150).

from ruia.

howie6879 avatar howie6879 commented on August 11, 2024

Will you avoid this problem by setting the concurrency value lower?

from ruia.

abmyii avatar abmyii commented on August 11, 2024

Will you avoid this problem by setting the concurrency value lower?

No, I fixed it by not having both html=response.html and url=response.url passed to get_item (I thought passing URL was necessary for debugging output to have URL in it, but I've found the new method now that I mentioned in the closed debugging issue).

I'm not sure if this issue is relevant any more, but perhaps there should be an error when both are passed to prevent this from happening any other time?

from ruia.

howie6879 avatar howie6879 commented on August 11, 2024

I'm not sure if this issue is relevant any more, but perhaps there should be an error when both are passed to prevent this from happening any other time?

How about just use html if someone uses Item.get_item by having both html and url

from ruia.

howie6879 avatar howie6879 commented on August 11, 2024

By the way, Ruia's test case seems to be wrong

from ruia.

abmyii avatar abmyii commented on August 11, 2024

I'm not sure if this issue is relevant any more, but perhaps there should be an error when both are passed to prevent this from happening any other time?

How about just use html if someone uses Item.get_item by having both html and url

Yes, that would be good. Shall I implement it?

By the way, Ruia's test case seems to be wrong

Which?

from ruia.

howie6879 avatar howie6879 commented on August 11, 2024

Yes, that would be good. Shall I implement it?

just do it.

Which?

Test cases always fail

from ruia.

abmyii avatar abmyii commented on August 11, 2024

Test cases always fail

Fixed - a simple error (response.url instead of request.url):
4ed265c

just do it.

Done.

from ruia.

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.