Giter Club home page Giter Club logo

Comments (6)

stephanlensky avatar stephanlensky commented on September 26, 2024

It looks like some of the log was cut off in your snippet - it would be helpful to see the text below "This error was caused while parsing the following content" so that we can see what the bot is seeing when it tries to load the webpage.

Would you mind sending over the complete log? Since it's probably super long, you can save it to a text file and attach it as a file instead of copying it directly into a comment.

It would also be helpful to see how you have your search configured. What is the output of /show in the channel that has the search?

from hyacinth.

Andreww9 avatar Andreww9 commented on September 26, 2024

The following is the full log, I just missed one line:

Traceback (most recent call last):
File "/app/plugins/marketplace/client.py", line 120, in _parse_search_results
raise ValueError("Could not find items container")
ValueError: Could not find items container

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/app/hyacinth/monitor.py", line 95, in __safe_poll_search
listings = await search_spec.plugin.get_listings(search_spec.search_params, after_time)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/plugins/marketplace/plugin.py", line 38, in get_listings
return await get_listings(search_params, after_time, limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/plugins/marketplace/client.py", line 28, in get_listings
async for listing in search:
File "/app/plugins/marketplace/client.py", line 53, in _search
result_urls = _parse_search_results(search_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/plugins/marketplace/client.py", line 133, in _parse_search_results
raise ParseError("Error parsing search results", content) from e
hyacinth.exceptions.ParseError: Error parsing search results

This error was caused while parsing the following content:

I have attached an image of my search configuration.
Screenshot 2023-12-20 080354

from hyacinth.

stephanlensky avatar stephanlensky commented on September 26, 2024

Hm, that's strange - the search configuration in your screenshot is for Craigslist, but the error from your logs is for an FB Marketplace search. Were you trying out Marketplace at some point in a different channel? To help debug that I'll need the /show command from that channel, showing the Marketplace search that's failing.

It's also strange that there's nothing below "This error was caused while parsing the following content:" in your crash logs.

I fixed a couple of issues just now related to the Marketplace client and the crash reporting, could you try pulling the latest and seeing if it helps?

To help further, I will need that /show command from the channel that had the Marketplace search configured.

If you can't find it, you can try deleting all of your existing searches & filters by clearing the database with docker-compose down -v, then starting the bot and configuring your searches again. Note: as mentioned, this will delete all of your existing configuration.

from hyacinth.

Andreww9 avatar Andreww9 commented on September 26, 2024

You are correct, after messing with it a little further I found the FB marketplace search configuration, instead of the craigslist one. I tried running the program today but am now getting a different error. I posted a new issue, so until I get that resolved I will not be able to test out the changes you made.

from hyacinth.

Andreww9 avatar Andreww9 commented on September 26, 2024

I have resolved the other issue and testing your changes now.

from hyacinth.

Andreww9 avatar Andreww9 commented on September 26, 2024

Facebook marketplace notifications are now coming through, everything seems to be working!
Thanks much!

from hyacinth.

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.