Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"There was an error getting mail items!" with attachments #109

Open
seberhard opened this issue Jan 23, 2019 · 8 comments
Open

"There was an error getting mail items!" with attachments #109

seberhard opened this issue Jan 23, 2019 · 8 comments

Comments

@seberhard
Copy link

seberhard commented Jan 23, 2019

Hi,
first, thanks for writing mailslurper! This makes testing mail delivery so much easier!

I have checked out the current mailslurper repository and I am running the docker container on OSX.

My problem is that when I send mails with attachments to the mailslurper SMTP server, these aren't shown in the web interface. Instead there is a message saying "There was an error getting mail items!". Mails without attachments are shown just fine.

Also, when I try to get the mail containing the attachment using the REST API, e.g. curl http://localhost:8085/mail/72f84b7a-7a97-4186-7565-dd43cbb898a1, nothing is returned.

In the server log, there is no error message. Only this entry:
time="2019-01-23T22:46:04Z" level=info msg="Mail item 72f84b7a-7a97-4186-7565-dd43cbb898a1 retrieved" who=ServiceController

I am running the mailslurper container with this command:
docker run -p 8080:8080 -p 8085:8085 -p 2500:2500 mailslurper

The problem can be replicated with your test script send-mail-test.py. After running the script, the web interface no longer works. Retrieving a mail that has an attachment per REST call is also not possible.

Please tell me if there is something I can do to fix this.

Thanks,

Sebastian

@seberhard seberhard changed the title There was an error getting mail items! with attachments "There was an error getting mail items!" with attachments Jan 23, 2019
@Milamber33
Copy link

I'm not seeing any errors in the web interface, but I'm also NOT seeing ANY emails that have ANY attachments on them. I've tried debugging things from my application and it shows no errors in the SMTP communication, all the data is being sent and MailSlurper returns OK.

@rutgerclaes
Copy link

I can confirm. We ran into the same issue.

@Gaelik-git
Copy link

I have the same problem, I created a Pull request where I try to fix the bug.

Can you try my solution and tell me if it works for you ?

@rutgerclaes
Copy link

Your solution works for me.

@drjele
Copy link

drjele commented Oct 22, 2020

@Gaelik-git when will your solution be merged?

how can i use it if it is not merged?

@TMInnovations
Copy link

Same problem here.

@Gaelik-git
Copy link

@Gaelik-git when will your solution be merged?

how can i use it if it is not merged?

I don't know if it will ever be merger. My team switcher to https://github.com/mailhog/MailHog
It is not perfect but it worked better for us than mailslurper

@ignition42
Copy link

To me, also with attachment:

$ curl http://localhost:8085/mail/cf1d7fb6-f338-4526-55e5-f82983782b38
{"message":"Internal Server Error"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants