-
Notifications
You must be signed in to change notification settings - Fork 20
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
HeaderValueException:Too many "Content-Type" header values: "[application/json, application/json]" #33
Comments
Thank you for reporting this @ediweissmann could you share bit more details on how you run the library so we can identify the issue. For example, are you using it in multithreading environment or something similar? If you could share also details about environment you use (Java version, etc) that would help us a lot too. |
Yes to multithreading environment (a java/scala web app), as in there can be multiple threads/requests calling the Postmark API client in parallel. Is the client not thread-safe, should we take care of the synch access on our end?
|
Thanks @ediweissmann client should be thread safe, but that was first to come to my mind related to issue. I will see to dig into this issue this week |
we just released version 1.7.6 which should resolve this issue. Let me know if works correctly for you. Igor |
Thank you, will let you know if it happens after updating. |
Hello @ibalosh We're using 1.8.0 version and still getting same error. Do you have any idea? |
Hi @aonurozcan unfortunately we can't reproduce the issue and haven't received any additional customer support regarding this issue. We will need to investigate it more |
Hey guys, in order to resolve this issue I would need as much details as possible from you so that we can reproduce it and fix it. We are not yet sure if the issue is coming from the library or from the API response for this specific case. things that help
The more details you share, the easier we will track the issue down Thanks |
java version: java-11-amazon-corretto |
@enkuru could you also share how big is the email you are sending, body + attachment? |
@ibalosh sorry I have checked we don't send attachment, only template. So there is only body with 15 KB |
np, @enkuru do you see this only when sending with templates, or you can see it on some other endpoints too? |
Hi, we saw it only sending with templates |
Seeing this from time to time:
The text was updated successfully, but these errors were encountered: