Uncaught exception: Class 'Aws\GEmail\Exception\GEmailException' not found in phar - aws-php-sdk

I'm working on migrating (somewhat urgently) from AWS php sdk version 1.4.6.1 to version 3.178.1. In v1.x, we were using AmazonSES->send_email to send emails without attachments and AmazonSES->send_raw_email to send emails with attachments. Upon migrating we were able to get SesClient->sendEmail method to work as expected; however, sending with an attachment (SesClient->sendRawEmail) is trying to throw a "Aws\GEmail\Exception\GEmailException":
Uncaught exception: Class 'Aws\GEmail\Exception\GEmailException' not found in phar:///path/to/aws_v3.178.1.phar/Aws/WrappedHttpHandler.php on line (195)
The content of the email is base64 encoded MIME-Version 1.0. It has plain text, html, and attachment sections. Has been tested successfully on sdk v1.x
Google searches are turning up absolutely nothing regarding "GEmail". Skimming through some of the sdk source code and searching through the docs have also provided no leads. I can supply additional information as it becomes relevant. Any ideas?
Edit
Still no resolution on why this Exception type cannot be found. We were able to achieve the desired behavior by using the PHPMailer library (as shown in AWS PHP SDK documentation) to form the MIME message. I'm guessing the MIME message from our older code was somehow malformed. I would still be curious to know what happened.

Related

React-Native-Vision-Camera Exception when reading a QR-Code

I'm using react-native-vision-camera to build a QR-Code-Scanner for my app. I followed this guide by dynamsoft: https://www.dynamsoft.com/codepool/react-native-qr-code-scanner-vision-camera.html
In the beginning everything worked fine but now I'm always getting an Exception when reading QR-Codes with my camera. Even with the provided example project in the post it's not working properly anymore.
The detected result I get always has asterisks in it like this: [Attention(exceptionCode:-20111)] *ttp*//**ca*h*st*9*02/*entalobje*ts*book**98420*d*6b**-4***-9e***6*d796*0c*55
I already tried reinstalling the library and everything but I can't get it to work.
vision-camera-dynamsoft-barcode-reader has an internal dependency on DynamsoftBarcodeReader SDK and it needs an active license, which I found out in their other examples. In all their examples, public license are used which has an expiration date.
Due to this reason, I made a switch to vision-camera-code-scanner. This was already suggested in Community Plugin List of VisionCamera.
Hope this helps!

How to install and load OAuth extension to avoid Uncaught Error message

I'm trying to set up OAuth to use between my website and Yahoo Fantasy Sports but getting the error message "Fatal error: Uncaught Error: Class 'OAuth' not found". I'm completely new to OAuth and the process described below is the first time I'm dabbling with this.
I've registered for a Yahoo API key and secret and am using them in this code in PHP to try to set up a basic test connection:
$o = new OAuth( $consumer_key, $consumer_secret,
OAUTH_SIG_METHOD_HMACSHA1,
OAUTH_AUTH_TYPE_URI );
Having searched here, I know I need an OAuth extension and PHPoAuthLib was recommended in another post. I've followed the instructions to install it on the web server via Composer (which basically seemed to be composer require lusitanian/oauth in SSH) but am still getting the "Uncaught Error" message. The php/ext folder on my server is empty and I'm don't know if that is a bad sign.
I've run a phpinfo() file on the server and it does not show oAuth. I've also read that I probably need to load the extension in a php.ini file on my server but I don't know exactly how I would do that for the PHPoAuthLib extension. I tried extension=oauth or extension=oauth.so but didn't seem to work.
Any help would be much appreciated! I'm not wedded to that particular extension (I've also seen a recommendation elsewhere for a Python Yahoo OAuth extension but I know nothing about Python or using 'pip')... I just feel like I'm going around in circles trying to figure out each step.
After trying both PHP and Python OAuth extensions mentioned above, it turned out my web hosting provider prevents custom installations via SSH on shared web hosting for security reasons, but was able to install the HTTP OAuth PEAR module that is available via cPanel to enable OAuth to be used.

WSDL error: (Salesforce integration)

I am currently trying to integrate ExpressionEngine and Salesforce using a SOAP API. I have a working WSDL but when I try and parse the WSDL and create APEX classes in Salesforce it ends up throwing some weird errors. I have posted extensively on this at the following salesforce forum link: http://boards.developerforce.com/t5/Apex-Code-Development/URGENT-WSDL-Issues-Error-Failed-to-parse-wsdl-type-not-specified/td-p/548983
It was originally throwing an error saying that the name attribute could not be null so I then added name="salesforce" to the node. After that it began throwing a type error:
Error: Failed to parse wsdl: type not specified for attribute: salesforce
I have tried to debug this, but can't really find much wrong with the following declaration:
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]" name="salesforce"/>
The full WSDL document can be found at the above link. Any help would be greatly appreciated as this is not my particular area of expertise and I have a fast approaching deadline.
The WSDL is using the rpc/encoded interaction style, this is not supported by the Salesforce WSDL2Apex tool. You'll have to manually create/parse requests to this API.

Using a created report with iReport 4.5.0 gives 'Invalid content..' how to fix?

i am trying to use the JasperReports plugin with my Grails app, but
unfortunately i am running into problems. I create a report with iReport, load that into my app and then when calling the report i get an error like:
'Invalid content was found starting with element 'paragraph'. No child
element is expected at this point'
I remove the paragraph elements and then it seems to work, but that
involves a manual modification outside of iReport.
I guess this is a non-Grails issue but also can imagine that people
are having the same problem.
Does anyone have a solution to this?

When i used SMS plugin in grails i am getting error

i have service to send sms to the mobile through Application. I am getting the follwing error.
2011-06-06 19:37:35,729 [http-8080-2] ERROR sipgate.SipgateService - Server returned HTTP response code: 401 for URL: https://samurai.sipgate.net/RPC2
This probably means you are using an invalid username or password
Have you set up the config as explained on the plugin page (at the top of the documentation)?
I also assume that this means your earlier problem was solved... Can you accept the answer if my answer helped, or explain what you did to fix it if it did not?
I agree with Tim. You can only log in, if your Sipgate-Registration was verified by Sipgate.
Points, which you can check to see if your account is not working:
Try to log in on the sipgate.de webpage
Use the Perl-Client given here: http://www.sipgate.de/basic/api
The client can be downloaded at this location:http://www.sipgate.de/beta/public/static/downloads/basic/api/sipgate_api_perl_examples.zip
Hopefully you should not be able to do at least one of these things. Then you know you have to talk to the support # sipgate
The documentation on the plugin-page says, you have to have a 'conf/Config.groovy'-file. This means that you should have the basic Config.groovy file in the folder 'grails-app/conf/', which ships with every Grails installation. So my guess is that you might have created a different Config.groovy-file. So better check on the Config.groovy-file. The SMS-plugin should have generated some placeholders for you, where you need to enter your sipgate-account-data.

Resources