Server API update?
-
Something else you can do is test all of your server calls with an external tool, I use https://hoppscotch.io/
-
@d-healey It seems that HISE can't connect to internet...
I tried "look for newer versions" in the help tab and it only say "Offline, Could not connect to the server". So my computer is online but HISE doesn't recognize it? -
@IsoWalle yeah that function is super old and I wouldn‘t be surprised if it points to a dead link.
-
-
@IsoWalle Make a simple snippet that fails for you and post it here.
-
HiseSnippet 883.3ocsVstaSyCF1oaA80xAARbAXkekJU5Z4v.wzm93qcanJXaUjwg+g7bbWslicjsSgBZ2EbMv0G2AvqSRaSYkwnR79ip7dx948n6PshxLFkF4U+3ooLj2M7ilJsi6OlvknA6h7tk+ADikowEh5MMkXLrXjm2FO2Ivq9lnb5a+WOhfHorEhPn2n3T1K4Ib6BoCe1K3Bw9jX1w7jJV+vmMfpj8UBUFfmM76fRIzyHmxNj3LqlOx6Z6EysJcjkXYFvldp3oQiUePVX+a3F9IBlioKJBNnBwn9i4h3gyhUCB4s4vEQ9FEQ9c8OfGymKeQF314JvK7nZNvq1kAot+APxqBj1r.R2wOhp4o1EZb3459CjPAYDAR0UgRgsnZesleeEXgz1NgbFaeMvL2ivs6zoEF9o4NMZDwzSX51FlsGwvd8qdYXvXqM07zs1hjxaeFa5ml1lq1Zx82R.0QogYBb9wkBtjgGkIoVtRhUxhSJhIicWsVIBopjTkD.QK7DhHi0rQ850wkzmqx3nIDMNE+u3Oi+YMynfO5n.7SwAuqfB9Uld9NqRiS1bgkQNkHDukaGO7nniCC.bxiCZgSaMOzBMPcMyzBqYFHbLKGF4gxrytpPHIXTBV6TMWZCsZWhe9Iz7Bv67kEcdiY0uSY19yxigAKRxAMcEsxTceHHNAlTBWQYn4NUJRGprrijgMa.o+Fm2.+ypFMZk5JOJASuR0tgX8k4XnLK4DlddePogPW9xiNW6pM5PKxMULTIGH41iRYk76qDwtQB22WbPCUlbcibkHDL0lOvcqxAtdYVqRh3w4KDmmTQ4QP08anWOXWhkL6rfiEtpTl1xcQj2trIvbSwvbc+cYlyrpzbaKKpPR3pcyeD4468E3Bm59nY9dzKru.1TohyDD6xqub6oKU.Elk1Y31KHMb6zp6w+C1o04R2ocUg3c7GxszwqFi0VAFg78eCLV9RvM82azHF0t.fa5u+6V209+lq+UpLKWd5ADql6JxGlkDAO.RYvsKkLgwUuq4ZaK3633cY.WaQNy2ApTYWGuWoxtyThRHTs58zhlc2aM+StD.Sx7mVqCuwC73tyZv886ztCJAd168TpK7uGLIsZet+Z3yCVCed3Z3yiVCe1dM74wqgOO4R8w8ON9+LqJoXb.DLbu7EMdd6IIPmUdWH5G.gzjlJ.
-
@d-healey That should get a 40x error, but it gives a 301 and no response.
-
@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.
-
@d-healey The thing is that it isn't a redirect, the server has none.
-
@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.
-
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...
-
@IsoWalle Some staging servers will block these calls. Could be server-side firewall or antivirus too.
-
@dustbro Any idea why it would work from Hoppscotch and not HISE?
-
@d-healey Maybe it's detecting calls from Hopscotch as a trusted source?
-
@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.
-
@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. hahahahHis server may be rejecting POST requests, causing a redirect.
-
@dustbro It works with Hoppscotch though
-
@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+SJLZShQUZ2tKfg53HNKQJPRkNsf.rG48FrdnjrkbqaQgwptfw776G+34bXlqjLPqkJhS6KxSAhy8cCxElnwQTtfLaBw4AtZC0jo8XQ.aIYTdJUqgPhiyduvZiS68IEe+6uNhFSELnVDg7VImAuhmvM0Rme7K4wwmPCgK3IMr9IGOiIEikwxLDO64NfjRYKoWCmQsl0xk37MSC4FoJ.QDnIN6ORFlGDIemnz92x07qhA6lgj.LPkhOQFGZQrUJYbDONb9pyslfQYdMKrWIK7CtmxC4qkWyFeegBuZOZxGNs1Dd6sA7F1DdCZ.us.ImFPZ+RH8P2.lhmZp0Xwy8bmILfZAEo8lPozVRq+rk6XIZgvzOgtDNQgaV6g+SGLnmGtbvy6zI.T2.p9ZvLhpg275W42MxXR0+xgG1E0i2LZi2MTkWY4vkEkCdG40klx6uDx+679b4g273CK0+nB8cw.yEwbA3sHSvLbovSJJSU.HBsXSIi8YxjTo.QYOLEwYvActsSaToVFC8SUbgwuKiFiA5ZKX5ztBsVY+N2D8hoW32DW87t8tdqSYkpddJPioQig2C+t0tzY8BeQkcdGcjWU7CJDb9KKcnc6aq96Ghsb.hnuyBsB81k65T766PY20Y0cv0fY7pipe2Zdn6AVhuhMFiGpqvJe+svTG77F73YRCbtvufrvj38gpVrXq5pBULn1pZaSo5y4nuHK4JP07pxZHVotY4u6mt7uY2IqjaZXnTLSvMmmBhOUOKohPssJUnBM0Tzn7fpFkQYFiTP3gEC0VSjjBT2bFE4MylPMzUwBCKlpTPY31SgyD3FbFVYSXa2IfdoQlVXa0EIdv+xx7esNq+yUGmWuYxwjOteGmzHCyholMG+Xm4Vo.uT1nm21WKzbSdyYx+uMS5KEhOzcN2vh1NFasELh79WCLVMI+6bmtXAvL0.be2S9iuNisIuVlYvQTmRMJNdY6dVVR.9XFCvrKDPrsovoks7sb+.6dKCXKOJ17e3Wkxg18NUJGtRIIgxTxKYkE812J91BIHlDEOS118T6dugqJzccGze.IAe15RFyd7eD1Qsced7N3yOtC97jcvmeZG74o6fOOaG74m+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
-
@dustbro
(cause I don't have user/password)
Shouldn't it return a 401? 404 is page not found.
-
@d-healey maybe I typed the api link wrong?
edit: yup I typed it wrong.
license validation link also gets a response of 200HiseSnippet 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