IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#32882 - 07/29/10 02:44 AM Using error process
Michel Wagenaar Offline
OL Newbie

Registered: 02/25/10
Posts: 6
G'day,

I'm having trouble using the error process. I have a process which polls a remote webserver using 'HTTP client Input'. On the 'On Error' tab I checked the box 'send to process'.

I made a real simple error process just containing a 'error inputbin' and a 'send email'.

At the moment the webserver is offline the process gives the following error: http://www.fotopocket.nl/view.php?friendly=0729084143

It seems like the error process never gets any information from the original process.

What am I doing wrong?

Top
#32883 - 08/02/10 04:51 PM Re: Using error process
Anonymous
Unregistered


Hi Michel,

The "On Error" process will only work within the Watch service. The process will work with any functions that use the actual windows service Planet Press Watch. EX: Create PDF .If you take the connector Planet Press Image, it will not work as it is its own service and different than the Planet Press Watch service. Another limitation of "On Error" is any Input features will be unable to send a file because it was unable to capture it.

Hope This Helps.

Top
#33066 - 08/20/10 02:48 AM Re: Using error process [Re: ]
Michel Wagenaar Offline
OL Newbie

Registered: 02/25/10
Posts: 6
Thanks for answering, bit late due to holidays.

Maybe for the PP team: remove the 'on error' tab on the functions where it is never gonna work, this is only confusing.

Top
#33075 - 08/20/10 09:08 AM Re: Using error process [Re: Michel Wagenaar]
Eric Lachance
Unregistered


Michel,

Actually, the On Error tab does "work" with all plugins (other that a few exceptions), though not always in an extremely useful way. Errors are generally triggered when the plugin itself fails internally, such as if it can't write to a file, find a document or communicate with a server.

In your case though, the On Error tab should be triggered. You create an Error process which I assume starts with the "ErrorBinInput" process. Did you remember to select this process in the On Error tab of your HTTP Server Input?

Also, you say that the error process never gets information from the original process... what information are you expecting exactly?

Top
#33149 - 08/27/10 03:03 AM Re: Using error process [Re: ]
Michel Wagenaar Offline
OL Newbie

Registered: 02/25/10
Posts: 6
Eric,

I did remember to select the error process, at least I'm quite sure, I already changed it by now.


But your other question: I don't really know which information to expect. I added a 'send to folder' in the error process so I would see what information I would get, but nothing happened.

For example: I figured the 'HTTP client input' could generate a 404 error just like browser would do, or just the error message from my screenshot. I don't really mind what I get, PP can probably handle it anyway wink


But can I achieve what I want? So when the website is down, the 'HTTP client input' would generate an error so that I get an email?

Top
#33532 - 10/07/10 10:33 AM Re: Using error process [Re: Michel Wagenaar]
Michel Wagenaar Offline
OL Newbie

Registered: 02/25/10
Posts: 6
I still don't have a working solution for this.

I have made a very simple process to test: 1 process contains a http client input with a not-working ip adress (the same as when the server would fail). The error process just contains a InputErrorBin and a Send to Folder (to a txt file).

This way I capture everything that would happen, but it turns out nothing is happening. What am I doing wrong?

Top