HISE Logo Forum
    • Categories
    • Register
    • Login

    Problem downloading tiny files

    Scheduled Pinned Locked Moved Solved General Questions
    6 Posts 2 Posters 632 Views
    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.
    • ustkU
      ustk
      last edited by

      I get troubles downloading tiny files (223 Bytes). It's not working about 80% of the time.
      For larger files I get no troubles
      I'm downloading from a CDN storage url, and get a Server.StatusOK 200, but the download finishes with a success: false result

      Currently investigating from another server, I wonder if this might be a Hise issue?

      Interface: https://s427.b-cdn.net/bcdn_token=b0zrJZALCXYkrfDp0FScVpMahuRvhyvwxt-sH7tW6Es&expires=3434522402/assets/Align-IT/update_data.json
      Interface: 200
      Interface: {
        "numTotal": 0,
        "numDownloaded": 0,
        "finished": true,
        "success": false,
        "aborted": false
      }
      

      Can't help pressing F5 in the forum...

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @ustk
        last edited by

        @ustk Have you tested with a local server?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @d.healey
          last edited by

          @d-healey Haven't thought about that! i'll try asap thanks Dave!

          Can't help pressing F5 in the forum...

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @ustk
            last edited by

            @ustk Did you solve it?

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            ustkU 2 Replies Last reply Reply Quote 0
            • ustkU ustk has marked this topic as solved on
            • ustkU
              ustk @d.healey
              last edited by

              @d-healey Yeah I wouldn't say I fixed it, but I got it to work by dropping the user IP from the generated token I was creating for the CDN secure URL...

              Here's the support response I got:

              If you're pulling X_REAL_IP as a means of reading a user_ip that means only for uncached requests could it reach your server to read the header. A request cached will generate you the same token hash for other users, as we don't treat a token value as a separate cache key (it wouldnt make any sense to). You generally need some other proxied URL (or non CDN URL/script) to read an IP separately.

              Using the IP for protecting the downloads was overkill anyway

              Can't help pressing F5 in the forum...

              1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @d.healey
                last edited by

                @d-healey Well that doesn't mean I understand all of this, especially why the problem occurred with tiny files and not with "normal" sized ones... Anyway small files are now downloading light speed with no errors

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 0
                • ustkU ustk referenced this topic on
                • ustkU ustk referenced this topic on
                • First post
                  Last post

                59

                Online

                1.7k

                Users

                11.7k

                Topics

                101.8k

                Posts