I am trying to behavior of webhook with my local environment. I just deployed the simple workflow which starts based on webhook notification.
I deployed the process. whenever i hit the connector URL, i am facing 401 error. i am able to hit the other services by following the steps mentioned in Local installation with Camunda 8 Run | Camunda 8 Docs . But Inbound services are failing with 401
Env: Local environment using c8run
Process:
Hi @pragasekar
Can you show the Authorization settings that you use for the connector?
Regards,
Alex
Hi Alex,
I haven’t set any authorization type. Below the screen shot
What if you follow the authentication instructions described in the Use Camunda APIs section?
With this i am able to use other operate-APIs. But for connecter service its failing with 401.
I just tried a setup similar to yours and it works fine for me. The only difference is the operating system.
Can you share your BPMN file?
Regards,
Alex
Attached the bpmn file for the reference. I am using this with windows.
Could you specify your OS and tried BPMN file.
startWebHookTwo.bpmn (4.3 KB)
I use Mac OS. I tried with your BPMN and it works fine.
Interesting. i am not sure we can conclude this as issue because of OS.
I am using the desktop modeler. I am not sure its something todo with modeler version. If you dont mind, could you share your BPMN content as xml and curl commands you have used.
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1mbo3gw" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.29.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.6.0">
<bpmn:process id="startWebHook" name="startWebHook" isExecutable="true">
<bpmn:sequenceFlow id="Flow_0tn13zc" sourceRef="startWebHookPRSE" targetRef="Activity_0bfzg0k" />
<bpmn:manualTask id="Activity_0bfzg0k">
<bpmn:incoming>Flow_0tn13zc</bpmn:incoming>
<bpmn:outgoing>Flow_14ggdgh</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_08w8w7a">
<bpmn:incoming>Flow_14ggdgh</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_14ggdgh" sourceRef="Activity_0bfzg0k" targetRef="Event_08w8w7a" />
<bpmn:startEvent id="startWebHookPRSE" name="startWebHookPRSE" zeebe:modelerTemplate="io.camunda.connectors.webhook.WebhookConnector.v1" zeebe:modelerTemplateVersion="10" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyBpZD0naWNvbicgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB3aWR0aD0nMTgnIGhlaWdodD0nMTgnIHZpZXdCb3g9JzAgMCAzMiAzMic+CiAgPGRlZnM+CiAgICA8c3R5bGU+LmNscy0xIHsgZmlsbDogbm9uZTsgfTwvc3R5bGU+CiAgPC9kZWZzPgogIDxwYXRoCiAgICBkPSdNMjQsMjZhMywzLDAsMSwwLTIuODE2NC00SDEzdjFhNSw1LDAsMSwxLTUtNVYxNmE3LDcsMCwxLDAsNi45Mjg3LDhoNi4yNTQ5QTIuOTkxNCwyLjk5MTQsMCwwLDAsMjQsMjZaJy8+CiAgPHBhdGgKICAgIGQ9J00yNCwxNmE3LjAyNCw3LjAyNCwwLDAsMC0yLjU3LjQ4NzNsLTMuMTY1Ni01LjUzOTVhMy4wNDY5LDMuMDQ2OSwwLDEsMC0xLjczMjYuOTk4NWw0LjExODksNy4yMDg1Ljg2ODYtLjQ5NzZhNS4wMDA2LDUuMDAwNiwwLDEsMS0xLjg1MSw2Ljg0MThMMTcuOTM3LDI2LjUwMUE3LjAwMDUsNy4wMDA1LDAsMSwwLDI0LDE2WicvPgogIDxwYXRoCiAgICBkPSdNOC41MzIsMjAuMDUzN2EzLjAzLDMuMDMsMCwxLDAsMS43MzI2Ljk5ODVDMTEuNzQsMTguNDcsMTMuODYsMTQuNzYwNywxMy44OSwxNC43MDhsLjQ5NzYtLjg2ODItLjg2NzctLjQ5N2E1LDUsMCwxLDEsNi44MTItMS44NDM4bDEuNzMxNSwxLjAwMmE3LjAwMDgsNy4wMDA4LDAsMSwwLTEwLjM0NjIsMi4wMzU2Yy0uNDU3Ljc0MjctMS4xMDIxLDEuODcxNi0yLjA3MzcsMy41NzI4WicvPgogIDxyZWN0IGlkPSdfVHJhbnNwYXJlbnRfUmVjdGFuZ2xlXycgZGF0YS1uYW1lPScmbHQ7VHJhbnNwYXJlbnQgUmVjdGFuZ2xlJmd0OycgY2xhc3M9J2Nscy0xJwogICAgd2lkdGg9JzMyJyBoZWlnaHQ9JzMyJy8+Cjwvc3ZnPg==">
<bpmn:extensionElements>
<zeebe:properties>
<zeebe:property name="inbound.type" value="io.camunda:webhook:1" />
<zeebe:property name="inbound.method" value="any" />
<zeebe:property name="inbound.context" value="startWebHookPRSE" />
<zeebe:property name="inbound.shouldValidateHmac" value="disabled" />
<zeebe:property name="inbound.auth.type" value="NONE" />
<zeebe:property name="activationCondition" value="=(request.body.action = "start")" />
<zeebe:property name="resultVariable" value="result" />
<zeebe:property name="resultExpression" value="={id: request.body.id}" />
</zeebe:properties>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0tn13zc</bpmn:outgoing>
</bpmn:startEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="startWebHook">
<bpmndi:BPMNShape id="Activity_122m5jz_di" bpmnElement="Activity_0bfzg0k">
<dc:Bounds x="270" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_08w8w7a_di" bpmnElement="Event_08w8w7a">
<dc:Bounds x="422" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_063k33p_di" bpmnElement="startWebHookPRSE">
<dc:Bounds x="182" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="161" y="145" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0tn13zc_di" bpmnElement="Flow_0tn13zc">
<di:waypoint x="218" y="120" />
<di:waypoint x="270" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_14ggdgh_di" bpmnElement="Flow_14ggdgh">
<di:waypoint x="370" y="120" />
<di:waypoint x="422" y="120" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
curl --request POST ‘http://localhost:8080/api/login?username=demo&password=demo ’
–cookie-jar cookie.txt
curl --location ‘http://localhost:8085/inbound/startWebHookPRSE ’ --header ‘Content-Type: application/json’ --cookie cookie.txt -v --data ‘{“id”: “243”, “action”: “start”}’
I tried to run the same with docker version of C8. I am able to initiate the process without any issue. Sounds like there is some issue with windows version of c8run.
Thanks @Alex_Voloshyn for your time
1 Like
system
Closed
December 12, 2024, 6:12pm
14
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.