Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeremias 53 posts 278 karma points
    Dec 14, 2017 @ 16:10
    Jeremias
    0

    Newsletter-Preview/Sendout: Error: An error has occurred. Could not download the current node as HTML.

    Hello,

    right now I have a problem: I had a working newsletter. Now I changed some css-things in the template. Now I only get the Error-Message when clicking preview or send an email. But the Web-View works: https://bezirk-schwaben.de/zusaetzliche-inhalte/newsletter/_test/ (I sent the html from a web-view as Newsletter)

    Here is the full error-message:

    Error: An error has occurred. Could not download the current node as HTML. Are your templates configured correctly?
    

    But I changed nothing else in umbraco or newsletterstudio - only change my cshtml-Template...

  • Markus Johansson 1945 posts 5898 karma points MVP 2x c-trib
    Dec 14, 2017 @ 16:31
    Markus Johansson
    0

    Hi!

    Newsletter Studio will try to render the page using a template called "Newsletter"

    https://bezirk-schwaben.de/zusaetzliche-inhalte/newsletter/_test/newsletter/

    What if you try that?

    I bet that there is some error in the cshtml-code?

  • Jeremias 53 posts 278 karma points
    Dec 15, 2017 @ 09:16
    Jeremias
    0

    Hi,

    I changed the cshml back to the code, where it worked! And I also tried, when I just make a h1 with "hello world" - but also no happy result :)

    My template has the alias LdNewsletter. So you need to call it like this: https://bezirk-schwaben.de/zusaetzliche-inhalte/newsletter/_test/ldnewsletter/

  • Jeremias 53 posts 278 karma points
    Dec 15, 2017 @ 09:46
    Jeremias
    0

    Now I tried the whole thing directly from the server. I can see the preview and send the newsletter. Everything is all right and works. But when I do this from my computer, the Error-message above comes.

  • Jeremias 53 posts 278 karma points
    Dec 15, 2017 @ 09:49
    Jeremias
    0

    Could it be, that there has be changed something on the server? Something that breaks downloading the template to an external PC?

  • Markus Johansson 1945 posts 5898 karma points MVP 2x c-trib
    Dec 16, 2017 @ 11:24
    Markus Johansson
    0

    That sounds strange, I works on your server but not the dev-machine?

    Are you getting the same error? The one that you posted? " Could not download the current node as HTML."

    It looks like this has something to do with that the web page can't be downloaded - have it ever worked on your machine? Sometimes there is security settings around this?

    What version of Newsletter Studio are you running? I'm thinking that I might be able to add some more debugging to the error-handler for us to have a closer look at the underlaying problem.

    Cheers!

    // m

  • Markus Johansson 1945 posts 5898 karma points MVP 2x c-trib
    Dec 16, 2017 @ 11:20
    Markus Johansson
    0

    Hi!

    If your template is called "ldNewsletter" it will not work as the convention is that the template has to be called "newsletter".

    Have look at the documenation: http://support.newsletterstudio.org/customer/en/portal/articles/1053067-sending-from-the-content-section

  • Jeremias 53 posts 278 karma points
    Dec 19, 2017 @ 08:26
    Jeremias
    0

    I have a Template which is called "Newsletter" with alias "LdNewsletter". So now I changed the Alias to "Newsletter" - but the exact same effect... Same Error-Message like at the beginning

  • Markus Johansson 1945 posts 5898 karma points MVP 2x c-trib
    Dec 19, 2017 @ 11:09
    Markus Johansson
    0

    Hi!

    And if you open that URL in the browser

    http://www.yoursite.com/thePageToRender/Newsletter

    (Adding "Newsletter" to the end of the url will have umbraco to render "thePageToRender" with the Newsletter template.

    What happens?

  • Jeremias 53 posts 278 karma points
    Jan 02, 2018 @ 06:59
    Jeremias
    100

    Hi Markus,

    I found a solution for this problem. The problem was, that in the https-binding in IIS was the IP-address from the server. I removed the IP and now it works again :)

  • Markus Johansson 1945 posts 5898 karma points MVP 2x c-trib
    Jan 02, 2018 @ 08:35
    Markus Johansson
    0

    Hi!

    I see, Good news! Thanks for sharing the solution!

    // m

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies