<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.prescient.consulting/blogs/random/feed" rel="self" type="application/rss+xml"/><title>Prescient Analytics - Blog , Random</title><description>Prescient Analytics - Blog , Random</description><link>https://www.prescient.consulting/blogs/random</link><lastBuildDate>Fri, 12 Sep 2025 06:40:04 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[GnuGPG - How to fix gpg: handle plaintext failed: General error]]></title><link>https://www.prescient.consulting/blogs/post/GnuGPG-General-error</link><description><![CDATA[How to fix gpg: handle plaintext failed: General error]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_TIB52KYdRRWVbNz8Q_snhg" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_EjeyH10URzuLbRG_g7J43w" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"></style><div data-element-id="elm_TVnYzvUAQ-Gqq84oBrLc9Q" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_1q7pM_zTRmioNXfcqEGEjg" data-element-type="text" class="zpelement zpelem-text "><style></style><div class="zptext zptext-align-center " data-editor="true"><p style="text-align:left;"><span style="color:inherit;">[Note: this issue occured using GPG4Win 2.2.5 in an Azure Function App environment]</span><br></p><p style="text-align:left;"><span style="color:inherit;"><br></span></p><p style="text-align:left;">I recently encountered a frustrating, albeit minor, issue. A Powershell Script process that was running on as an Azure Function App, started throwing an error <i>gpg: handle plaintext failed: General error</i>.&nbsp;</p><p style="text-align:left;"><br></p><p style="text-align:left;">A quick Google search of the error message did not reveal much, though the first result did refer to filenames potentially being a cause.</p><p style="text-align:left;"><br></p><p style="text-align:left;">The frustrating part was that it was working correctly previously, and on my local environment there was no issue in the command I was using: <i>bin\gpg.exe -v --batch --output d:\home\download\files\file_07112018.zip --decrypt D:\home\download\files\file_07112018.zip.gpg</i></p><p style="text-align:left;"><i><br></i></p><p><span style="color:inherit;"></span></p><p style="text-align:left;">Long story (of trying error logging, different switches etc) short, I altered the output filename and placed an underscore suffix and magically it worked! A guess is a conflict between the filename set in the encrypted file since it was the same as I was trying to output.</p><p style="text-align:left;"><br></p><p style="text-align:left;">Hope this helps someone!</p></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Wed, 23 Jan 2019 08:34:47 +1030</pubDate></item></channel></rss>