Copied to clipboard

Flag this post as spam?

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


  • ServantCoder 10 posts 121 karma points
    Jul 24, 2022 @ 16:57
    ServantCoder
    0

    uSync import warning: No output formatter was found for content types '["text/xml", "text/xml"]' to write the response.

    I am running Umbraco 10.0.0 with uSync 10.0.0. I have a performed a uSync Clean Export from the source machine, and am trying to do an import to a new host.

    On the new host, I can successfully report and import Settings. I can also successfully report Content.

    However, when I attempt to Import content (or Import everything), progress proceeds normally through media, the progress indicator moves to "Content", and then appears to hang. After 15 seconds, the bottom pane disappears and the Report, Import, and Export button text remains in a spinning (in progress) state.

    The Log Viewer indicates a Warning level issue with the message of:

    No output formatter was found for content types '["text/xml", "text/xml"]' to write the response.

    Does anyone know how to satisfy this warning, or is there a way to identify which content item is having the issue?

  • Kevin Jump 2311 posts 14696 karma points MVP 7x c-trib
    Jul 25, 2022 @ 08:27
    Kevin Jump
    0

    Hi,

    I haven't seen one this before ☚ī¸ - but if you turn on debug logging for uSync ( https://docs.jumoo.co.uk/usync/uSync/guides/debugging ) then it should help pinpoint what is happening just before this error.

  • ServantCoder 10 posts 121 karma points
    Jul 25, 2022 @ 13:49
    ServantCoder
    0

    Hi Kevin,

    Here is what the log shows with DEBUG set:

    Jul 22, 2022 1:19:26 PM Warning     DEV01    No output formatter was found for content types '["text/xml", "text/xml"]' to write the response.
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Clearing KeyCache "keycache_ContentHandler_5"
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Deserialize Schedules
    Jul 22, 2022 1:19:26 PM Debug       DEV01    Base: Deserialize Core Success "Content"
    Jul 22, 2022 1:19:26 PM Information DEV01    Document "About Us" (id=0) has been published.
    
  • Kevin Jump 2311 posts 14696 karma points MVP 7x c-trib
    Jul 25, 2022 @ 13:53
    Kevin Jump
    0

    Hi,

    Does anything happen above that formatter line ?

  • ServantCoder 10 posts 121 karma points
    Jul 25, 2022 @ 14:02
    ServantCoder
    0

    Just my log out a few minutes later. :-(

  • Kevin Jump 2311 posts 14696 karma points MVP 7x c-trib
    Jul 25, 2022 @ 14:24
    Kevin Jump
    0

    Hi,

    I actually think the import of the content is working but then the serialization of the results back to the browser is failing 😔

    The last thing that happens is the temp cache used during the sync is cleaned and then the results are returned.

    So...

    Do you have any content which might have strange characters / xml markup inside property values, that could be triggering something (& and ' and " type things should all be fine, maybe its something else?)

    and/or

    Have you changed/overridden and default serialization / json serialization properties in your project anywhere ? - maybe something is causing the controller not to use the expected serializer / settings and that is throwing it off.

  • ServantCoder 10 posts 121 karma points
    Jul 25, 2022 @ 19:47
    ServantCoder
    0

    I think you're right; all content appears to be imported.

    There is no content that appears to have any strange characters or markup, and we have not changed any serialization.

    I tried something else though and am suspicious if this is causing the issue with the content import. I cleared out the host's files and database, and started again.

    This time uSync reported Settings (59 Datatypes, 19 Templates, 49 DocTypes, and 1 Macro; 128 changes across 165 items) and successfully imported the same counts with no errors (all showed Details link).

    I immediately logged out and then back in, and reported Settings again. Although I expected no changes, it actually reported 10 DocTypes. I successfully imported those 10 changes with no errors (all showed Details link).

    I immediately logged out and then back in, and reported Settings again. uSync reported 3 DocTypes. I successfully imported those 3 changes with no errors BUT only 1 showed a Details link.

    This last step (logout, login, report Settings, import Settings) will simply repeat itself as above but with no Details link for any of the 3.

    So, ...

    1. Do you think this might be the cause of what we're seeing during the content import (which still throws the same warning even when doing the multiple Settings imports)?

    2. As we checked each iteration of the import, it seems uSync is picking up the history of changes (renames, add/remove properties, change sort orders, etc.). There were a lot of changes as we were/are learning Umbraco, and that history should not really be needed in the test and production environments. Therefore, is it possible to direct uSync to import the current version?

    Thanks Kevin!

  • ServantCoder 10 posts 121 karma points
    Sep 09, 2022 @ 05:36
    ServantCoder
    100

    Hi Kevin,

    We found the issue. We had a sitemapXml page. We renamed it to sitemap and it resolved the issue.

Please Sign in or register to post replies

Write your reply to:

Draft