span8
span4
span8
span4
Hi,
Each time I try to use the Emailer transformer in a workbench,I get this error message :
2018-02-12 15:28:28| 0.5| 0.1|WARN |Python Exception
2018-02-12 15:28:28| 0.5| 0.0|WARN |Traceback (most recent call last):
File "Emailer.py",line 126,in input
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 43: ordinal not in range(128)
2018-02-12 15:28:28| 0.5| 0.0|ERROR |Error encountered while calling method `input'
2018-02-12 15:28:28| 0.5| 0.0|FATAL |f_6(PythonFactory): PythonFactory failed to process feature
2018-02-12 15:28:28| 0.5| 0.0|ERROR |A fatal error has occurred.Check the logfile above for details
I tried with the generic SMTP and a Gmail account and always get the same error.
Any ideas ?
Thanks
Hello@philsc,
Thank you for your patience while we worked through this issue.In the latest FME 2019.0 beta,this error has been addressed.You can download the latest FME 2019.0 beta here:https://www.亚搏在线safe.com/support/support-resources/fme-downloads/beta
Hi@philsc,@lalandexavier-- I took a peak into the source code (because your error log reported a line #) and I have an interesting observation.
First,I'll ask the team to "harden" the offending line of code so we can better see what is really going on.
But..
The error is being thrown at the very moment that we are creating an error message to return.I suspect that we're getting some unicode characters back from the email server complaining,and when we are trying to report whatever the email server told us,we throw this exception.
I'm sorry that this isn't more helpful,and we'll see if we can improve the error reporting at least for FME 2018.But all I can advise is that somehow there is a failure being reported back from the email server.
The source code in question is pasted below:
def input(self,feature):
# Get the attributes from the feature
self._fme_name = feature.getAttribute(kEmailerXformerName)
connectionParams,emailContents = self._popMailArgsFromFeature(feature)
# Do the real work.如果发生任何问题,catch it and assign appropriate attributes
rejectionMessage = None
try:
self.sendMail(connectionParams,emailContents)
except FMEException as exc:
rejectionMessage = exc.message
except:
exceptionType = sys.exc_info()[0]
exceptionValue = sys.exc_info()[1]
exceptionTypeAsString = str(exceptionType)
exceptionValueAsString = str(exceptionValue)
rejectionMessage = exceptionTypeAsString + ': ' + exceptionValueAsString
Line 126 is the last line here.
Dale
Hi everybody.
I've the same problem have you find the source of this problem ?
0xe9 is a é if htat helps,
I don't know if FME 2017 is different to 2016 but I tent to do address like
"Philippe Cote"
danilo_fme,
We are working on FME 64 bits 2017.1.1.0 build 17650
david_r,
here is a screenshot of the transformer,I don't think there is an ascii character except maybe the @
Thanks for your help.
Sounds like there are some non-ascii characters somewhere.Can you please post a screenshot of your Email configuration?
OneDriveConnector to Emailer - how to bring through _sharable_link attribute2 Answers
Sending mail via emailer2 Answers
Emailer failing with 'target machine actively refused it'1 Answer
SMTP error3 Answers
Is it possible to send an email via the emailer transformer with an Excell 2016 (.xlsx) attachment?1 Answer
© 2019 亚搏在线Safe Software Inc |Legal