rpaframework icon indicating copy to clipboard operation
rpaframework copied to clipboard

Error when using Wait for Message keyword on RPA.Exchange.Email

Open AllanMedeiros opened this issue 2 years ago • 3 comments

Hello! When Wait for Message is called then the error below is thrown: AttributeError: 'NoneType' object has no attribute 'inbox' image

rpaframework library version is 13.0.3 I was using an older version before where this kw was not working neither due to this issue https://github.com/robocorp/rpaframework/issues/377

AllanMedeiros avatar Apr 08 '22 20:04 AllanMedeiros

Can you post your complete code leading to Wait For Message and the conda.yaml content ?

mikahanninen avatar Apr 10 '22 17:04 mikahanninen

Sorry @mikahanninen, I just realized the Authorize keyword wasn't being run before Wait... But now I'm facing connectivity issues on Authorize to login on our Exchange servers, but I believe is something wrong with our network and IT is looking into it.

AllanMedeiros avatar Apr 10 '22 21:04 AllanMedeiros

Maybe would be good to throw another error message when Wait... or other keywords are executed without Authorize kw.

AllanMedeiros avatar Apr 10 '22 21:04 AllanMedeiros

Turning self.account into a property which checks if self._account (Account()) was initialized, can fix it nicely. If there's no such object, an error raise like AuthenticationError("Not authorized to any Exchange account") would do the job.

cmin764 avatar Nov 18 '22 16:11 cmin764