-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Body of Http Post #45
Comments
Hi @nizarelouaer, you have different options to set the body of the request. If the body is static then you can define a custom header Otherwise, the body can be passed as a workflow instance variable with the name Does this help you? |
Hi @saig0 thank you for the comment. The body is not static so I’m my input mappings I am setting it like the following : |
I am now able to set the body, but I am having an issue with the header. In my request I have a key in the header: |
@nizarelouaer that is interesting.. that is probably the case.. let's investigate |
@nizarelouaer For some reason, we are using HttpClient class, https://github.com/zeebe-io/zeebe-http-worker/blob/master/src/main/java/io/zeebe/http/HttpJobHandler.java#L55 that might be automatically initialized with that... I will look deeper |
@salaboy I just read the http worker java code and there is nothing that sets the connection key header. I guess it is set in the zeeebe itself maybe |
@salaboy in the java code the header are set without any connection key. I think that I will add the header key |
@nizarelouaer awesome! lets us know how it goes! |
Hello,
I am using the http worker to communicate with my Rest Microservices. One of my services accepts a POST request with a JSON body. I tried to set the body cariables in the headers using the zeebe modeler but it does not work. In the modeler there is no option to set Variables, the only options are Variable Mappings and Headers. How can I set the body of my request using the modeler ?
Thank you
The text was updated successfully, but these errors were encountered: