Rpa camunda bridge

please dear colleguis, i cant up camunda rpa bridge , i have this message in cmd

. ____ _ __ _ _
/\ / __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.3.1.RELEASE)

2021-01-12 15:49:31.317 INFO 948 — [ main] org.camunda.bpm.rpa.bridge.Bridge : Starting Bridge v1.0.0 on AESALAZAR10 with PID 948 (D:\Camunda Server\camunda-bpm-rpa-bridge-1.0.0\camunda-bpm-rpa-bridge.jar started by aesalazar in D:\Camunda Server\camunda-bpm-rpa-bridge-1.0.0)
2021-01-12 15:49:31.321 DEBUG 948 — [ main] org.camunda.bpm.rpa.bridge.Bridge : Running with Spring Boot v2.3.1.RELEASE, Spring v5.2.7.RELEASE
2021-01-12 15:49:31.322 INFO 948 — [ main] org.camunda.bpm.rpa.bridge.Bridge : No active profile set, falling back to default profiles: default
2021-01-12 15:49:34.071 INFO 948 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8081 (http)
2021-01-12 15:49:34.096 INFO 948 — [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-01-12 15:49:34.096 INFO 948 — [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.36]
2021-01-12 15:49:34.272 INFO 948 — [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-01-12 15:49:34.273 INFO 948 — [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2844 ms
2021-01-12 15:49:35.304 INFO 948 — [ main] org.camunda.spin : SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
2021-01-12 15:49:35.377 INFO 948 — [ main] org.camunda.spin : SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
2021-01-12 15:49:35.446 DEBUG 948 — [ main] o.c.b.r.b.r.uipath.auth.Authentication : Sending request to UiPath for authentication with URL https://account.uipath.com/oauth/token and payload {“grant_type”:“refresh_token”,“client_id”:“IO5b8qzBO_x9xetIhi3qP7G-_vKbgLTtmqCXdonYKX6P8”,“refresh_token”:“8DEv1AMNXczW3y4U15LL3jYf62jK93n5”}
2021-01-12 15:49:36.275 WARN 948 — [ main] o.a.h.c.protocol.ResponseProcessCookies : Invalid cookie header: “Set-Cookie: did=s%3Av0%3A0640acd0-5518-11eb-8acf-13fe142ab03e.y9Dsxi1s8epqfIwdF05%2BHdNrVDFSwaF2bFQsIhVXnfw; Max-Age=31557600; Path=/; Expires=Thu, 13 Jan 2022 02:52:03 GMT; HttpOnly; Secure; SameSite=None”. Invalid ‘expires’ attribute: Thu, 13 Jan 2022 02:52:03 GMT
2021-01-12 15:49:36.276 WARN 948 — [ main] o.a.h.c.protocol.ResponseProcessCookies : Invalid cookie header: “Set-Cookie: did_compat=s%3Av0%3A0640acd0-5518-11eb-8acf-13fe142ab03e.y9Dsxi1s8epqfIwdF05%2BHdNrVDFSwaF2bFQsIhVXnfw; Max-Age=31557600; Path=/; Expires=Thu, 13 Jan 2022 02:52:03 GMT; HttpOnly; Secure”. Invalid ‘expires’ attribute: Thu, 13 Jan 2022 02:52:03 GMT
2021-01-12 15:49:36.281 DEBUG 948 — [ main] o.c.bpm.rpa.bridge.rpa.RequestHandler : Received the following response payload for request https://account.uipath.com/oauth/token: {“error”:“access_denied”,“error_description”:“Unauthorized”}
2021-01-12 15:49:36.283 WARN 948 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘bridge’: Unsatisfied dependency expressed through field ‘taskAdapter’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘getExternalTaskAdapter’: Unsatisfied dependency expressed through field ‘rpaRestService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘getRpaRestService’: Unsatisfied dependency expressed through field ‘token’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘authToken’ defined in class path resource [org/camunda/bpm/rpa/bridge/BridgeConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.bpm.rpa.bridge.rpa.uipath.auth.AuthToken]: Factory method ‘authToken’ threw exception; nested exception is java.lang.IllegalStateException: Error on authentication against UiPath with error: {“error”:“access_denied”,“error_description”:“Unauthorized”}

Can you take a look at the Style Guide? It’ll help you understand how to format code correctly and also help you create questions that are easy to understand and also easier to answer :slight_smile:

Hi @Aldo_Ernesto_Salazar,

In the logs you provided it says {“error”:“access_denied”,“error_description”:“Unauthorized”} after an API call to UiPath. This means your credentials or refresh token are likely incorrect.

Can you double check your application.yml that all properties under uipath-api.authentication and uipath-api.tenant-name are correct? For an explanation of all the properties head over to https://docs.camunda.org/manual/7.14/user-guide/camunda-bpm-rpa-bridge/#configure-access-to-uipath-orchestrator

Cheers,
Miklas

please if you can do this connection, ca you asy my what is tyhe problem: here put my aplication.yml and my api connect uipath

[EDIT by @Niall] I removed these images as they have sensitive data in them… i’ve passed on the images priverly to @Miklas

@Aldo_Ernesto_Salazar,

based on your screenshots I believe the values for uipath-api.authentication.user and uipath-api.authentication.key are mixed up. Have a look at the explaining comments for each property. I think they should go the other way round.

Could you try that?

1 Like

thanks a lot @Miklas¡, it was that.