-
Notifications
You must be signed in to change notification settings - Fork 2
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 up 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
Exception when running example code #12
Comments
I am unable to reproduce. Do you have more details on the exception (stack trace) or what exact search parameters you used? It's possible that some of the values the |
Yeah, the above code is the exact code used, I only added a "using DotnetCraigslist;" at the top so it'd compile. I got version 0.2.0 from nuget in visual studio. Here's the stack trace: <title>Document</title>
It outputs 2 of the results, then excepts on the third, which right now happens to be a link to this entry https://losangeles.craigslist.org/wst/ele/d/los-angeles-amd-matx-gaming-computer/7518591985.html There's nothing that seems off about this page. |
I was able to reproduce, there was a bug with version |
awesome, I can't try it till this friday, but I'll close this now and just re-open if I still have issues. |
Hey there, so I'm running 0.4.0 and it was working for a couple of days, but now I get a different exception when running the same code as above. ` <title>Document</title>
|
So I was able to dig and find what was causing the problem. Under some circumstances craigslist returns a page that states
This page doesn't have any results to parse, so the results parser crashes when trying access them. I wonder what can be done to prevent this. |
So I've copied the example code from the readme:
But I get an exception after it iterates over a few of the results.
This is in dotNet 6.0. I can provide more info if needed
The text was updated successfully, but these errors were encountered: