I tried to pass it into Gladys’s HTTP request, and every time I got a response that the Api-Key was incorrect, even though it was the same as in the working curl.
I don’t have the ‹ X-Api-Key › variable in the header that I passed.
Is this a bug or am I doing something incorrectly?
Another question in parallel, do my data parameters ‹ -d › correspond to the Body part in Gladys, or is there no possibility to integrate data variables from Gladys?
The issue is that the « try » button sends an array, but the backend method expects an object.
@pierre-gilles I wanted to fix this issue, but I thought it would be interesting to also do the variable transformation with Handlebars. However, I think it will be complicated from the « try » button, as we don’t have the « scope » that contains the variable values.
Ah indeed! By the way, quick fix in the meantime, in my opinion @Checconio if you test your scene by « running » the scene instead of « trying » the HTTP block, it should work.
Indeed, it’s another project! After that, we are not obliged to send the real values in a « try », we can just send a placeholder for the variables. If we put a message to say that the variables will be replaced by test values, I think that can already be good
I confirm the « hack » while waiting for the « try » bug to be fixed. If you test the scene via the « Start » button global to the scene, it works well:
No worries
And I confirm the correct functioning of my HTTP request after finding the right syntax
I will probably make a tutorial on sending SMS from Gladys