Dataclay — Automating Digital Production
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Register
    • Login

    Error: No response from server

    Scheduled Pinned Locked Moved Remote URL Feeds
    5 Posts 3 Posters 43 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fofilouundefined Offline
      fofilou
      last edited by fofilou

      Hello,

      I don’t understand why my JSON URL isn’t working.

      Here’s the URL: https://www.monbacasable.com/wp-json/wp/v2/slider/441
      Access in browser works fine.

      But there’s still an error on Templater (see capture in attchment).

      Perhaps my JSON code isn’t correct. But in any case, access should work.
      Even a directly hosted JSON file doesn’t work: https://www.monbacasable.com/data.json

      I did add a header.

      Thank you

      Jeffundefined Jonundefined 2 Replies Last reply Reply Quote 0
      • Jeffundefined Offline
        Jeff @fofilou
        last edited by

        @fofilou

        I checked the URL that you provided, and I think it should work as long as we add open and close brackets to the beginning and end of the data block to signal to Templater that it’s reading from an array of objects. I wasn’t able to test that with the URL feed, but when I copied the data to a local file and added the brackets, it seemed to work fine.

        As for the locally hosted file, I’m curious about what happened when we tried to use it as our data source. I was able to link to the “data.json” file without an issue and preview data in Templater. Was there an error message in the status section of the Templater Panel?

        Let us know, and we’ll see what we can do to resolve this issue.

        Thanks,

        Jeff

        1 Reply Last reply Reply Quote 0
        • Jonundefined Offline
          Jon @fofilou
          last edited by

          @fofilou to add to what Jeff said, there’s an extra comma after the third object in the data.json array, which makes the JSON syntax technically invalid and might be what is tripping up Templater.

          As for the response from the wp-json REST API, Templater needs a flat array of non-nested objects (each object being a single “job”), but the API is returning an object with other nested objects and arrays. I didn’t see the attachment come though, but it’s likely that any access failure message is actually because it couldn’t parse the data without the root of the response being an array. If you want to use that data, you would need to create a custom endpoint that is transforming that data into the correct data structure.

          1 Reply Last reply Reply Quote 0
          • fofilouundefined Offline
            fofilou
            last edited by fofilou

            Thank you for your help.

            I simply uninstalled Templater and reinstalled the latest version, and it works!

            One quick question: how do I reset ALL images loaded from a JSON file when the image source is different?
            To generate a new projet

            There must be a function to refresh all the images? Without having to go through them one by one.
            It’s the clock button ?

            Thanks

            Jeffundefined 1 Reply Last reply Reply Quote 0
            • Jeffundefined Offline
              Jeff @fofilou
              last edited by

              @fofilou

              Glad to hear that you were able to get things working. As for the current question, if I’m understanding correctly, you’re looking to reset all assets reversioned by Templater back to their original source?

              If that’s what we’re looking to do, the easiest way would probably be to create an object in our JSON file with the original asset names and then use the Preview button in the Templater Panel to load that Data Set.

              Once Templater swaps out a media asset, the project file is permanently altered to reference the new footage. So, outside of reverting to a previous version of the file, our best bet would simply be to make a new swap to the assets we want.

              As far as refreshing goes, we could also select all assets with issues in the Project panel and go to File > Reload Footage to have AE reprocess any missing or broken file references.

              Hopefully that helps,

              Jeff

              1 Reply Last reply Reply Quote 0
              • First post
                Last post