Forum
    • Categories
    • Register
    • Login
    1. Home
    2. Daanyoo
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 24
    • Groups 0

    Daanyoo

    @Daanyoo

    1
    Reputation
    2
    Profile views
    24
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Daanyoo Unfollow Follow

    Best posts made by Daanyoo

    • RE: callWithPOST change content type

      @Christoph-Hart this is how im passing the JSON data:

      inline function requestDirectLicenseActivation(deviceName, deviceSignature, accessToken)
          {
              local requestData = {
                  "deviceName": deviceName,
                  "deviceSignature": deviceSignature
              };
              
              currentAccessToken = accessToken;
              
              makeHttpRequest("POST", "/client/licenses/" + PRODUCT_ID + "/request", trace(requestData), handleDirectLicenseResponse);
          }
      

      Even when converting the JSON object using trace, I'm getting the 415 error due to an unsupported media type, as the endpoint will not receive the content as application/json, as its converted to x-www-form-urlencoded data.

      a7efb73a-5e4a-4f34-ad20-59419326215a-image.png

      posted in General Questions
      D
      Daanyoo

    Latest posts made by Daanyoo

    • RE: I am unable to get an AudioAnalyser to display in a floating tile

      @Chazrox Hey everyone, I am currently running into the same issue with this setup. HISE crashes on Index 1 or 2, but works fine on Index 0. Even on a fresh project.
      Did you anyone of you get this running the with other options? Would love to incorporate an oscilloscope into my plugin :)

      posted in General Questions
      D
      Daanyoo
    • RE: Remove Sample Install Dialog

      @dannytaurus I mean I'm removing the .vst3 from the VST3 folder and copy the new version into it - usually the DAW should detect the new version if the plugin has the same name... thats at least what it used to do

      posted in General Questions
      D
      Daanyoo
    • RE: Remove Sample Install Dialog

      @David-Healey Oh, thats a good hint - but it still didn't remove the dialog after recompilation..
      This is the right place to put the definitions, isn't it?
      77088d9b-d913-490f-98c4-f419781148fa-image.png

      posted in General Questions
      D
      Daanyoo
    • RE: Remove Sample Install Dialog

      @David-Healey Do I need to remove the entire build folder? I just used to go into the Release folder and delete the .lib and .vst3 before recompiling

      posted in General Questions
      D
      Daanyoo
    • Remove Sample Install Dialog

      Hello everyone,

      I want to remove the install samples dialog on startup of the plugin, as I'm implementing my own initialisation flow using Expansions.

      I researched the forum and found some posts regarding removal of the dialog and tried adding these preprocessors to my project:

      HISE_DEACTIVATE_OVERLAY=1
      HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=0
      HISE_SAMPLE_DIALOG_SHOW_LOCATE_BUTTON=0

      Option 1 seemed to the latest approach to this problem, but I also saw some people using Option 2+3 for this. Unfortunately none of these options seem to work as my compiled plugin still prompts me to install the samples on the first startup...

      What am I missing here?

      Would really appreciate some input on this :)

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Daanyoo I just tried to reproduce it on a empty project on WIN, it worked there and all of the sudden it worked in the regular project as well... I am so confused haha

      But at least its fixed, thank you guys for your help!!

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      As already mentioned, the request using the same function with the JSON string is delivered perfectly fine on OSX:

      2019e1bc-04d3-4a60-82a2-b1b13744982b-image.png

      I cant figure out why it wouldn't work on WIN, even though the code is identical.

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @David-Healey I already did:

      Server.setBaseURL(MOONBASE_API);   
              Server.setHttpHeader("Content-Type: application/json\nAuthorization: Bearer " + currentAccessToken); 
      
      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Christoph-Hart I use trace(data) and it works perfectly fine on OSX.

      local jsonData = trace(data);
                  
                  Server.callWithPOST(endpoint, jsonData, function(status, response) {
                      if (status == 200) {
                          currentHttpCallback(true, response);
                      } else {
                          currentHttpCallback(false, {"error": "HTTP " + status});
                      }
      

      However when executing the same function on my Windows HISE build the typecheck fails and String is rejected:

      Interface:! LicenseManager.js (767): Illegal type: string, expected: JSON

      The json content type is also being correctly passed, as the request is successful on OSX.

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      No Matter how I try passing the JSON object into the callwithPOST function, it always arrives in this URL-encoded format, which makes my request for the license activation fail.

      One for Christoph I guess...

      posted in General Questions
      D
      Daanyoo