Server.callWithGET broken on Mac compiled plugins
-
-
@LeeC dont know about the Get but the POST works fine for me in Reaper...
-
@Lindon Did the POST work for you in Reaper on a Mac?
I've created an API endpoint using Amazon AWS and can successfully POST to it in HISE using the snippet below.
When compiled it works in these DAWs on a Mac:
Studio One
Ableton LiveHowever, it fails in the following DAWs on a Mac:
Logic X
ReaperHiseSnippet 1418.3ocsWktaabCDlqi2fH0nhFf9i1+Qrn+PFvVWV4PIHHJ9Jvow1BQNG.EAoT6RIw3UjaWx01JAFnOJsuI8QIOB8MncH2SYK65nhrBvFjyA+lONbFxdgBWpTJBQVkNbZ.EYca69S4pwaNlv3nc2BY8C18ogGSCOjJUzv6ie5a5i6cPeEZioADoj5grrtwyzZaUZYj46uexFDeB2klOEB8ZAyk9B1DlJe1dc+Ylu+NDO5grIEztc2ccE7ME9hH.Y2vtAJf3dDYDcehVskrQV2baOlRD1WQTTIxZ4MDdS6OVbBOV+WyjrA9T8fln9fihmdGgumFw5YQaNl460KkAjHvK8x4iaDyGeu8dLOV1747x2YDfysnHeXszUAulEgWiqO7rJ.ukig2cr66FxBT4RzX6ar2kCaVCIvVPQXEqKZo+7l1aJ.M3pZSHGQ2IDFjYQ060nwp361nwJOpRY8OXqPpvGSBw4YB3GiS8vHpZSwj.AGFT0IWEGs8419Bx.peyK0tXwyyl1WsMsmmMstZaZMOaV+psYcmKxGCHR5qd4K.CcFqTAxGVu9u04CQCkDuSFWidJ0MRQWiDvpEIWiRjp0ZViLg7QAmbhrlqXhyLvPZ3tMI99ZOV2iNjD4qp+bxwDoYmyPqFTDGF0jT.dJ5oJmUSAiFkw.dFo49NNLpWOY2DqmKNvf4NbLE+rsODSBGEMABdIlHwOu+A6iEC9.0UU.sA3GW9SkwvmCYJ04gXmVNkOKgiz+XbeFmhGFwcULAGK34IGZhNT3W0MkkWE7oeDckJk+TEiSi+qAlJruNfvJAd.TW4HvSXeAwKiHZNSn53jwAsmifJkKwFVMd09jdcJEubl+EiPsUaDSmUKPqkRAjQGWf2dCSMFnqp4r6p3fUyB4pR37ejbUbHUBgoTGd3juy4Enj5Wja.dJkih+BoivgPdSpNO57BkfvXGMiHXmPJ7o0BBYPttbkYDNsFXQnRWcNrZqFw0DREd1JOBiyIuypjr6+eWXPyuIY.5fc.Tbu5bxNROvoyK0HPm.3KFgIbOrAtYAqQhdCe1ymSgPda9HHKrlaHEJEabyAlL4pZuOUiDyjY3HizySEqWeNYYg+Ri2kxFyUry.HCyYVclMeLirK92cX9z9SgdsSzDnoiPX0BStEUdjRDrhgd0sHzxp5.7RM0oZt8jPlhlDiYqfdiTDDuOpm6rXtsvYy8EfUPTCmoKU9rx3yKZ3v4JKYqxW624HNYEubCqxilLfFld7OUQnA2rcPsu7NnEav6Fm6UPQAeWNScP.keY8UQIIr5NrInBTUY5u9sI8W2HRoDbDyybCorDUjA0EulC5U6tEQQR8E3VXoBngJlNJr1hdLbMn3d2krS1KgnK6fBx5VwqbkjU1j2XV3aYGmmgNMaA69xtSyF7Wuq6ILO03b3H6NlxFMN+FWelzUm6YtB0P.d8YeLG8ceUWTAbXe8Xfbv7qjhfoeWlbOgtGBIbZJ0e8ixVEb7u+lBNFebRH7.6EqmKZVRpK+7jDpiYERu94ssa2py5M67fF2uyWTHrdgP.8SEBAzzjP3Gsujl7mCi+wGu.FexEwX6Nq2oSi1eQXrcALBaY4X7ye3+exzEutJboYgWjOQM6Mo0OeHQ.TbXlqrpuVJWxTSK97huJWu95B26X2iobGOe7tzbvKTK3qMdSdrRE6sGNDp6mC1ks24se8eYB5khHEiOZOhJjAIT16GMoOjX5RAjv4TecAbqkzkZiG2POVyL8obOyf+A9RD1TO1JQXyTgnID2Pw6ciKPqeNzsLy.XhadUXI68ziwMSKJaa2nVCzD3UZu20USEqAXe91zZArY8Evl1KfM2cAr4dKfM2eAr4AWoM5GH+zHkXR7wDXhdaaZNZYsMm.YYlLRz+BDTHpJ
-
@LeeC yes, sorry if I wasn't clear it works in Reaper on both Mac and Windows.
-
@Lindon thanks for clarifying!
Do you have a simple snippet that works your side that I could try here please?
I've been going at this for days, trying various file hosts & endpoints and I can't find anything that works across all DAWs on a Mac :upside-down_face:
Cheers
-
@LeeC sorry cant point you at the server - as its the clients and its restricted...
but heres some parts of it:// this is just setting up the URL to use...it could be anything you want.. Server.setBaseURL("https://your.servername.com"); var temp = "api/user/login/"; inline function doServerValidation(Mail, Pass) { // set up the post "packet" to send across.. const var p = { "email": Mail, "password": Pass }; // call the server.... Server.callWithPOST(temp, p, function(status, response) { // display the results... Console.print("status is:" + status); Console.print("response is:" + trace(response)); }); };
-
Actually I do lot more that you might want to consider
-
first start a timer( lets make it execute after 90 seconds....)
-
in the timer call back - if it executes it means we've been hanging around for 1.5 mins with no response from the server so tell the user their internet connection is broken...
-
callWith POST callback turn the server off... so we never get to the "hey your internet no worky" problem...
-
-
@Lindon no worries thanks.
Yeah that's pretty much the same setup that I've got in the snippet I posted above.
If you get chance to try my snippet it would be appreciated but no worries if not.
Honestly, I'm lost as to what's going on after trying multiple servers/setups... All work in HISE but in DAWs it's blah blah blah -
@Lindon said in Server.callWithGET broken on Mac compiled plugins:
Actually I do lot more that you might want to consider
-
first start a timer( lets make it execute after 90 seconds....)
-
in the timer call back - if it executes it means we've been hanging around for 1.5 mins with no response from the server so tell the user their internet connection is broken...
-
callWith POST callback turn the server off... so we never get to the "hey your internet no worky" problem...
Sure, this is exactly the kind of logic I have in the plugin I have ready to release. I noticed that a connection to the internet wasn't being made on some DAWs which gave birth to this thread.
The snippets posted are just to demonstrate the problem.
Appreciate the insight though thanks and if anybody has a few quick minutes to test the snippet their end and can spot anything it would be great.
-
-
so tell the user their internet connection is broke
There is a function to check for a working connection.
Server.isOnline()
-
Actually I am having the same issue in all of my macOS systems. (Catalina and High Sierra)
Standalone works, Hise project works but compiled plugin doesn't work in Logic Pro X. Can't connect to the server. Windows works also.
Has anyone figured it out to fix it?
-
Hi @orange, I tried multiple servers and setups but couldn’t get things to work with Logic Pro X, so
I decided to remove the code that depended on these server calls in the end.If you need help testing anything out further just let me know :)
-
Hey @Christoph-Hart, myself and @orange have just been doing some testing and it looks like it’s possible to get a server response in LPX, but it’s not the prettiest workaround.
It seems that playback through the plugin is required in order to trigger the Timer Object that returns the response.
You can see in the video below that initially no response is returned when hitting the ‘Call With Post’ button, but as soon as audio is played back through the plugin the response is returned.
Thanks for putting together the code snippet for testing btw @orange :grinning_face_with_big_eyes:
-
-
-
@orange said in Server.callWithGET broken on Mac compiled plugins:
@Lindon only AU fx plugins. Standalone and İnstrument versions works
..and only in Logic?
-
@Lindon said in Server.callWithGET broken on Mac compiled plugins:
@orange said in Server.callWithGET broken on Mac compiled plugins:
@Lindon only AU fx plugins. Standalone and İnstrument versions works
..and only in Logic?
Yes only on LPX. Interestingly, same AU plugin works in Ableton or Reaper. But in LPX we see this issue
-
@Christoph-Hart This is the exported fx plugin, you can see yourself: https://www.dropbox.com/s/b4qq5z8qopwlzzo/ServerTest_FX.zip?dl=1
Also snippet of this plugin is in below. In Hise works, instrument plugin works, but compiled fx plugins doesn't work in LPX.
HiseSnippet 1645.3ocuXssbZaDFVxwaRrbbmjYxE8RMzafo1bvw4PSm1.FiSoECLVX61qRERKvFK1kJsXBwimI8IpuB8QpuAs+qNwJrD1wyjpKX1C+eq99Ot+nttLKrmGyUQcidymfUTeDxXNkOp9HSBUo4A9Kfcu.61C6wU1e9DSOOrshp58dqPB0MVWw+4edy9lNlTK7hkTTNkQrvsHiI7Eq1s5uPbbNzzF2iLVR58p1zhQqybXSA1bOTYkIlVmaND21TH1ZHE062vlvYtFbSN1SQc88Y1yMFwlQCj+ThGouCVLohhAbPAKeHywVvXwpJ0GQbr6Fo0dJvozcgM3dA1fmhNhXShWegs3w9anu.gr8PcsUQuJxzq7smdpRza8.58DjgkKYBewNBtsIpIkicGXBt.YZEHqxZ+0CP0YfDTdwwlmiOzElDiH+KJWda8mWtbguWSCbCdb8KLc0YTGBE2pui9OnGAdHlWmMdBiBSxmKVhb.xE.wiMINqBWj.IgIX8Llq8pPJISRv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i6dNM9DnCODEz5SVZhLq2LaVGeIfDqqhk88muDqqNIEVGwofNrxhS2rtIVK3uAsEpF01zAqeDixRnMOJ63DoKnj8B6IqO+wR5ym9yqoOjP8QCE0N3sSiLcHCoi8I48QN3AbkrzmaJNayrSVitkP1g8QIE7u6ubXlcJNrUD+mFeCrGO.4WiOE1u6Rws2JcYKjzEwY4u9BpNZnnq1+L0nLqT8Pj+3JxJyWKWBnYjxfTOClFoHH0uAlEYjabTslsjCld.x0WNeVxmKnz8gKIcr+rX0tWiUH0dvvajQZnt0LLNqywGbKI00+m7OFcDydpiIO4GYP7kUB2.5THw+lW7O1odPrg7Wd4KxWd31R2mf5R3ViRmuqkBegdK9Ry2vuiyVnFCF.satfrqiN7W+x+QaTNlMUzw7QlPaoPzEp8zwFPZnEFXBkhcDcyotlnuqf4kEyEVFCL01ex+BOgaVQLWMbyJQapL1zxk8NqfdHEeonG5uBvIpep8FniDy0qn32WIfCUtXYkwDax6rrDlhc.tmNlcuCXd1c.yd2ALO+Nf4E2ALu7Nf4UqDi3aGVaJmMNHMAVnaC+lsUUaPEkT8iHU9OWkXzqC
NOTE: Create an account for login from here: https://www.noiseash.com/my-account/
-
@orange What's The Purpose Of This?
Plugin Activation?
Downloading On The Fly? -
@Natan said in Server.callWithGET broken on Mac compiled plugins:
@orange What's The Purpose Of This?
Plugin Activation?
Downloading On The Fly?It can be both of them