This project is read-only.
1
Vote

Converting the Json result to a GoogleResultSet failed

description

Hey

I sometimes get an exception when I run the "GoogleService.Instance.Search<GoogleWebResult>". The type is an ordinary "Exception" with the following message "Converting the Json result to a GoogleResultSet failed".
The inner exception is an "Newtonsoft.Json.JsonReaderException" with this message "Unexpected character encountered while parsing value: <. Line 1, position 1."

It is possible that it's because I run it too many times in a short period of time. Maybe Google returns a page designed for DDOS attacks. I'm too lazy too take a look at it in Wireshark but you can maybe use this info for a better exception handling.

Greetings

file attachments

comments

ftr wrote Nov 14, 2015 at 9:17 PM

Nevermind.. was something with my proxy...

Nevertheless usefull if you want to improve on error handling.... I'll leave this here

wrote Nov 14, 2015 at 9:24 PM

ftr wrote Nov 14, 2015 at 9:24 PM

Sorry too bother but now it's a DDOS security problem

If you are Interessted in how the message looks without having to abuse the service by yourself take a look at the attachement