Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: URLScraper1 Alarm Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 07 2015 at 07:44 | IP Logged Quote GadgetGuy

Dave -

This morning, for some reason, I started getting a Trigger on my URLScraper1 plugin, but not sure what is in the various TEMPS passed back by the error.

Could you define the content definitions so I can debug what is happening?


Thanks.

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 07 2015 at 17:59 | IP Logged Quote dhoward

Ken,

Scoured the source code and compiled the data below:

For URLSCRAPE1 errors, the variables of interest are:

TEMP1 = Trigger ID
TEMP2 = 0
TEMP3 = Error number
TEMP4 = scrape count that caused error
TEMP5 = blank
TEMP6 = Trigger type (27 for plugins)
TEMP7 = ID of plugin
TEMP8 = 256 (Error)
TEMP9 = Trigger number
TEMP10 = Scrape URL

TEMP3 error numbers:
1 = Error occurred while initializing the socket to retrieve URL
2 = Error occurred while attempting to connect to URL
3 = Timeout while connecting to URL
4 = Error sending request to URL
5 = Timeout waiting for data to return from URL
6 = No matches found for regex
7 = No snaps returned from regex
8 = Error parsing returned HTML header
9 = Server error returning HTML
10 = General runtime error occurred while performing regex search

So TEMP3 is error number 6 which shows that not an error per se but that no matches were found for your regex expression. With a TEMP4 value of 1 and a TEMP9 value of 1, that means the particular regex expression that did not find a match is the one under [URL_1_1].

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 08 2015 at 17:54 | IP Logged Quote GadgetGuy

Thanks Dave - that was a big help. Discovered my Alarm System had an error condition and that resulted in an extra space in the searched string that I had not planned on.

Easy fix, once discovered, to rework the scraper formula.

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum