---
title: "How to fix the error \"Script completed with errors. See log file.\" in Toolkit plugin"
description: "The Toolkit plugin error occurs when scripts write output to stderr instead of stdout. Troubleshooting involves checking logs, running scripts manually, and silencing progress bars in commands like curl."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004026989-geneos-how-to-fix-the-error-script-completed-with-errors-see-log-file-in-toolkit-plugin/index.html"
---
The Toolkit plug-in expects data to be written to the standard out (stdout). One common cause of the error message is that the Toolkit script had written output to the standard error (stderr).

If output is written to stderr, the *samplingStatus* field would return the error message:

![Geneos - how to fix the error "Script completed with errors. See log file." in Toolkit plugin](https://docscdn.itrsgroup.com/faq/images/geneos/115004026989-13358434398109-mceclip1.png)

The Toolkit script should only return output on stdout with specific data format. The format is basically comma separated format for table data with headers (optionally) for the headlines.

Please refer to the [Toolkit plug-in documentation](https://docs.itrsgroup.com/docs/geneos/current/collection/toolkit-plugin/index.html) for details on the data format.

There are a few ways to troubleshoot further:

1. Check the Netprobe log for any unexpected messages that may be written by the Toolkit script

2. Run the script manually on the command line to see any errors. Since Netprobe are often running in the background under certain user accounts, please simulate with similar conditions as possible.

3. Depending on the script language, there could be debug switches that can be enabled inside the script (e.g. #!/bin/bash -x).

4. For Linux and Unix, when appending the below to the command, the stderr output will be redirected to stdout

```
2>&1
```

## Example: curl command

When using the curl command to fetch data through the toolkit plugin, the download progress bar information can be mistakenly passed to the Netprobe log, which can cause errors.

![Geneos - how to fix the error "Script completed with errors. See log file." in Toolkit plugin](https://docscdn.itrsgroup.com/faq/images/geneos/115004026989-13358434405917-mceclip0.png)

### Possible Solutions

1. Since the toolkit plugin only expects CSV format data. The progress bar should be silenced using the -s, -silent, -S, and -quiet options.

For example:

```
curl -s URL
```

2. For curl 7.67.0 we can switch off the progress meter output without muting or otherwise affecting warning and informational messages like -s, --silent by using **--no-progress-meter**.


