HISE Logo Forum
    • Categories
    • Register
    • Login

    Server API update?

    Scheduled Pinned Locked Moved Scripting
    30 Posts 7 Posters 1.9k 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.
    • I
      IsoWalle @d.healey
      last edited by

      @d-healey That should get a 40x error, but it gives a 301 and no response.

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

        @IsoWalle 301 is a redirect. I suspect that JUCE doesn't follow the redirect and just returns it. Try it with a different URL that doesn't go through a redirect.

        Edit: Looks like my suspicion is correct - https://forum.juce.com/t/how-to-get-url-to-follow-redirects/13563 - although it looks like the problem should have been fixed.

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

        I 1 Reply Last reply Reply Quote 0
        • I
          IsoWalle @d.healey
          last edited by

          @d-healey The thing is that it isn't a redirect, the server has none.

          LindonL Dan KorneffD 2 Replies Last reply Reply Quote 0
          • LindonL
            Lindon @IsoWalle
            last edited by

            @IsoWalle said in Server API update?:

            @d-healey The thing is that it isn't a redirect, the server has none.

            might depend on your hosting config.

            HISE Development for hire.
            www.channelrobot.com

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

              I agree with Lindon. There's something on the server side that's not working correctly or is incompatible with requests from HISE.

              Even if I put a non-existent URL I get the 301 within HISE

              Server.setBaseURL("https://api.keyzy.io/v2/licenses/testingtesting");

              And interestingly Hoppscotch doesn't return a 404, instead it gives:
              "message": "The POST method is not supported for this route. Supported methods: GET, HEAD, PUT, PATCH, DELETE."

              And if I change POST to GET your server returns a 200 status for that non-existent URL...

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

              1 Reply Last reply Reply Quote 0
              • Dan KorneffD
                Dan Korneff @IsoWalle
                last edited by

                @IsoWalle Some staging servers will block these calls. Could be server-side firewall or antivirus too.

                Dan Korneff - Producer / Mixer / Audio Nerd

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

                  @dustbro Any idea why it would work from Hoppscotch and not HISE?

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

                  Dan KorneffD 1 Reply Last reply Reply Quote 0
                  • Dan KorneffD
                    Dan Korneff @d.healey
                    last edited by

                    @d-healey Maybe it's detecting calls from Hopscotch as a trusted source?

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    Christoph HartC 1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart @Dan Korneff
                      last edited by

                      @dustbro why would it be a trusted source? You can enter anything there, that‘s maybe the untrustworthiest source ever :)

                      I think it has something to do with how JUCE handles redirecting calls, I had a similar problem once and it was because of a missing trailing slash.

                      Dan KorneffD 1 Reply Last reply Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @Christoph Hart
                        last edited by

                        @Christoph-Hart said in Server API update?:

                        @dustbro why would it be a trusted source?

                        who knows what various antivirus and firewalls think or do
                        :grinning_face_with_smiling_eyes: One of my installers gets flagged as a virus in windows 10, but all other windows OS are fine. hahahah

                        His server may be rejecting POST requests, causing a redirect.

                        Dan Korneff - Producer / Mixer / Audio Nerd

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

                          @dustbro It works with Hoppscotch though

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

                          Dan KorneffD 1 Reply Last reply Reply Quote 0
                          • Dan KorneffD
                            Dan Korneff @d.healey
                            last edited by Dan Korneff

                            @d-healey @IsoWalle
                            I think there might be an issue with the link you're using. The API for KEYZE has a status check and that is working here.

                            HiseSnippet 891.3ocsV0saaaCElxIZX1sqXEXO.B9JE.WG6tt1gUDrL+SJLZSh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OaG74m+r9X+OF9sLiLorc.ELeZw.GGmoBJVYUTERduL6R5f
                            

                            And calling the license validation link here returns 404 for me (cause I don't have user/password)

                            HiseSnippet 894.3ocsV01aaaCDlxIZnVcqXEX+.D7mT.7br255FVQPy7KovnMIFUoc6aEzTmiHrDo.IU57BBv9I2+AcGkjsjacKJLVEfkMuWe3Cu6nmojLPqkJhS6qVkADmu0MbkvDOJlxEjoiINOvUanlbsOKFXKICWkQ0ZHh33bvyr13z9PRwy6d5PZBUvfZQDxqkbF7BdJ2TKc1oOmmjbFMBthm1v5Gc5TlTLRlHyQ7bfaeRFksjdMbA0ZVKWhy2LIhajpPDQfl3b3PYzpvX4aEk1+ZtlOOArKFPBw.UJ9LYRjEwVojQw7jnYq22ZBFkY0rvAkrvO3dNOhuQdMa78EJ7q8nIe3zZa3cvVvaPS30uA71AjbZ.oCKgzCcCYJdloViEO22cpv.pETj1aBkRaIsl2xcjDsPX5kRWBmovEa7H3w8620GeczS77BA0MfpmFLCoZ3Uu7EAchMlL8ue7wcP83Ii13eCUge3I7HbG5eheGZFu2RX0+rpGWdbBdVKzf93annEc773hDt.7WjKXFtT3KEkYIDDQVXojIALYZlTf.rKF4jb3Hua8ZiJ0xDnWlhKLAcXzDLPWawgW6JfZk8mbS7ylbUvFH00+165tIeAkUtc8UfFygFisO9bq8k2lW7EU14exI9UAOrPvkOuzg1sus56ODXq.Hl9VKtJzaecmWwuuCkcm2Zt+ZvLZ89LnSMIz4HKgWQEivczbrhOXGzzQOoAIdgz.WJBJXJLI9enpEK1otpPk.pcp11Lp9bNFHxSmCplmSVCwJzsK6c+zk8M6JYkbSCCkhoBt4xLP7o5UIUDpsEoBUnolhFjGT0fLL2XjBBOpXX1FhjTf5lylHuZ5XpgtNVXXwTkAJC2tKbFC2f0ykMescGC5kFYVgsUGj3F+KKy+8lr9uyOcU8hwmR939bbBiLJOgZ1dricVakB7PYqdca+rPyMqZNK9+sYQeoP7gty3FV7twXqcfQj2+ZfwpI3em6jEK.loFfG5d1e80YbM4kxbCNe5bpQwwCa2KxSCwKwX.lcg.RrMENsrkukq6aWaY.a4Qwh2iOUJGXW6TobvZkjTJSIeCqrn2dGw8JjfXRTb8Xa2ysq8GrtP20seu9jT75p2vX1s+OhcT61meZO74m2Cedzd3yurG9738vmecO7429r9X+mB+QtQlV1NfBlMoXfiiyDAEqrJpBI+Gv61E5j
                            

                            Dan Korneff - Producer / Mixer / Audio Nerd

                            d.healeyD 1 Reply Last reply Reply Quote 1
                            • d.healeyD
                              d.healey @Dan Korneff
                              last edited by

                              @dustbro

                              (cause I don't have user/password)

                              Shouldn't it return a 401? 404 is page not found.

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

                              Dan KorneffD P 2 Replies Last reply Reply Quote 0
                              • Dan KorneffD
                                Dan Korneff @d.healey
                                last edited by Dan Korneff

                                @d-healey maybe I typed the api link wrong?
                                edit: yup I typed it wrong.
                                license validation link also gets a response of 200

                                HiseSnippet 888.3ocsVs0aaaCElxIZnVcaXEX+.D7SJ.d9RWW2vJBZlujBi1jXTk1s2JXnNNlHRjBjTtSKH.6mb+GzcnjrkbqaQgwpdfwm6e7biYtRx.sVpHNsuLOEHNeqaXtvrb7RJWPlMg3be2UTdLOhZ.xn7TpVCQDGmCdlUAm1GRJ9d2SGQioBFTyhPdsjyfWvS3lZtyO44733SoQvk7jFZ+nSlwjhwxXYFBlCbGPRoranWCmSsp0xk37MSi3FoJzfPQSbNbjLJObo7shR8eMWyuJFrDCIgniJYepLNxhXKWx3k73n4quzZB5k40ofCJSA+n6Y7H9F90ohenPfesEMyGNs1FdGrE7F1DdCZ.uc.ImFP5vRH8.2PlhmZpkTVZlILfZAkscooTWRKnk6XIpgvzKgdCbpBI1XQviGLnqOdbzS77BA0JP0SClQTM7pW9hfNKMlT8u2ueGTNVYzF+UTk+ldA+i86PS48tAx+m7dbY+UOreLVtEZP2eEEUpimGWDyEf+hLAyvkBeonLPgfHxhLkLNfISRkBDicQmGmAG4cqWaTnVFC8RUbgInCiFiN5ZKT7ZWgUKu+jaV9roWFrAUc8u8ttahWfFqEY5t9JPiwPi91G+t0d3s4funRO+iO1ux4gELt34kFzt8sU+8CAVN.Kou0hqB41i67J98cHu67Vm9uFLiWeOC5TmD5bjMmWkJFi2nqvl9fcjlN5IMRhmKMvEhfhLEFD+OTzhE6TVkqhA0NEamGUeNCCDYIWApl0IqhXS51c9te5N+lClrxbSCEkhYBt4hTP7oFWIUIT6TREpPUMEyHee0LxnLiQJH7nhkYaRjjBT2biE4UylPMz09BcKFpTPY31agyDXE1OWN+01cBnuwHSKzspPhW7urH+2ah5+d0I40DSNg7wi53RFYTVL0r8lG651JAXQYqwc6HsPyM4Mub+usN5KEhOvcN2vVtaL1ZGXDy6eMvX0R7uyc5hE.yTCvCcO8u95rwl7RYlA2OcF0n3Xw187rjP7cLFfQWHfX6PgSKa6aI8.KsMCXaOJHdO9UIbnk1oR3v0BIITlR9FVYSu8Yh6UvAwjn3Ex1tmYo8GttQ20cPuAjD7Eq2vX1q+OgST61lGtG17y6gMOZOr4W1Cad7dXyutG17aeVar+yB+QlQlTNNfLlOsXgiiyTAE6rJ5BI+2LoJph
                                

                                Dan Korneff - Producer / Mixer / Audio Nerd

                                Dan KorneffD 1 Reply Last reply Reply Quote 0
                                • Dan KorneffD
                                  Dan Korneff @Dan Korneff
                                  last edited by

                                  and a calllWithPOST is returning 401. Seems like HISE is working to me?

                                  Dan Korneff - Producer / Mixer / Audio Nerd

                                  I 1 Reply Last reply Reply Quote 0
                                  • I
                                    IsoWalle @Dan Korneff
                                    last edited by

                                    @dustbro Hmmm... It seems like using the subURL as a variable instead of a sting inside the server call like you did makes it work.
                                    Is this changed intentionally in some commit or is it a bug?

                                    Anyways, now the subURL is a variable and it works just fine so thank you all for the great help!

                                    Christoph HartC 1 Reply Last reply Reply Quote 0
                                    • Christoph HartC
                                      Christoph Hart @IsoWalle
                                      last edited by

                                      @IsoWalle no this shouldn‘t make a difference and I’m pretty sure that it’s something else. Can you post an example that demonstrates this?

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        parabuh @d.healey
                                        last edited by

                                        @d-healey in backend 404 pointing to resource, not page so in this scenario response is ok.

                                        I found some various problem with ServerApi. For example even when my backend sending status 200 from post route hise shows status as 201. Calling server on windows and Mac is different. On Mac i have url https://xyz.com but on windows i need must have httpa://www.xyz.com otherwise I getting information about redirection.

                                        Christoph HartC 1 Reply Last reply Reply Quote 0
                                        • Christoph HartC
                                          Christoph Hart @parabuh
                                          last edited by

                                          @parabuh what's httpa ?

                                          P 1 Reply Last reply Reply Quote 0
                                          • P
                                            parabuh @Christoph Hart
                                            last edited by

                                            @Christoph-Hart sorry typo, I mean https :)

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

                                            23

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.0k

                                            Posts