+ Start a Discussion
Tomasz JurekTomasz Jurek 

Automate Order-to-Cash Process Using MuleSoft Flow Designer

Hi in final test of this trailhead
https://trailhead.salesforce.com/content/learn/projects/automate-ordertocash-process-using-mulesoft-flow-designer

I get following error in design center from mulesoft
********************************************************************************
Message               : HTTP POST on resource 'https://anypoint.mulesoft.com/mocking/api/v1/sources/exchange/assets/org.mule.examples/quick-start-nto-orders-api/1.0.0/m/orders' failed: bad request (400).
Element               : salesforce_to_twilio_connector/processors/3 @ ordertocashautomation-pqks:mule-config.xml:59 (Request)
Element XML           : <http:request config-ref="http_request" doc:id="6c2ef24f-8665-4ef0-90cf-ffc941e025c6" doc:name="Request" doc:timestamp="1571147129555" method="POST" url="https://anypoint.mulesoft.com/mocking/api/v1/sources/exchange/assets/org.mule.examples/quick-start-nto-orders-api/1.0.0/m/orders">
                        <http:body>#[%dw 2.0
                        output application/json---
                        null]</http:body>
                        </http:request>
Error type            : HTTP:BAD_REQUEST
FlowStack             : at salesforce_to_twilio_connector(salesforce_to_twilio_connector/processors/3 @ ordertocashautomation-pqks:mule-config.xml:59 (Request)) 218 ms
Payload Type          : org.mule.runtime.core.internal.streaming.bytes.ManagedCursorStreamProvider
--------------------------------------------------------------------------------

 
Tomasz JurekTomasz Jurek
rest of stack trace 
Root Exception stack trace:
org.mule.runtime.api.exception.MuleRuntimeException: HTTP POST on resource 'https://anypoint.mulesoft.com/mocking/api/v1/sources/exchange/assets/org.mule.examples/quick-start-nto-orders-api/1.0.0/m/orders' failed: bad request (400).
	at org.mule.runtime.extension.api.exception.ModuleException.<init>(ModuleException.java:66)
	at org.mule.runtime.extension.api.exception.ModuleException.<init>(ModuleException.java:76)
	at org.mule.extension.http.api.request.validator.ResponseValidatorTypedException.<init>(ResponseValidatorTypedException.java:31)
	at org.mule.extension.http.api.request.validator.ResponseValidatorTypedException.<init>(ResponseValidatorTypedException.java:58)
	at org.mule.extension.http.api.request.validator.RangeStatusCodeValidator.lambda$throwValidationException$3(RangeStatusCodeValidator.java:107)
	at java.util.Optional.map(Optional.java:215)
	at org.mule.extension.http.api.request.validator.RangeStatusCodeValidator.throwValidationException(RangeStatusCodeValidator.java:106)
	at org.mule.extension.http.api.request.validator.SuccessStatusCodeValidator.lambda$validate$1(SuccessStatusCodeValidator.java:39)
	at org.mule.extension.http.api.request.validator.SuccessStatusCodeValidator.validate(SuccessStatusCodeValidator.java:46)
	at org.mule.extension.http.api.request.validator.SuccessStatusCodeValidator.validate(SuccessStatusCodeValidator.java:39)
	at org.mule.extension.http.internal.request.HttpRequester.lambda$null$4(HttpRequester.java:141)
	at org.mule.extension.http.internal.request.HttpRequester.resendRequest(HttpRequester.java:192)
	at org.mule.extension.http.internal.request.HttpRequester.lambda$doRequestWithRetry$5(HttpRequester.java:134)
	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
	at com.mulesoft.service.http.impl.service.client.EEGrizzlyHttpClient.lambda$sendAsync$1(EEGrizzlyHttpClient.java:143)
	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
Tomasz JurekTomasz Jurek
Great now after debugging session I get this
Test Connection: {"message":"HTTP 500 Internal Server Error. org.mule.tooling.agent.rest.client.exceptions.model.ErrorEntity@62beab88[errorType=class java.lang.RuntimeException,errorMessage=Failed to deploy tooling artifact: [application]. Cause: There was an issue resolving the dependency tree for the artifact [/opt/mule/mule-4.2.0/.mule/tooling/apps/tooling-application-1a4cb7e0-f00c-11e9-b531-0ad465ba15de],errorDetail=java.lang.RuntimeException: Failed to deploy tooling artifact: [application]. Cause: There was an issue resolving the dependency tree for the artifact [/opt/mule/mule-4.2.0/.mule/tooling/apps/tooling-application-1a4cb7e0-f00c-11e9-b531-0ad465ba15de]\n\tat com.mulesoft.agent.services.tooling.MuleAgentToolingService.deployToolingArtifact(MuleAgentToolingService.java:313)\n\tat com.mulesoft.agent.services.tooling.MuleAgentToolingService.deployToolingApplication(MuleAgentToolingService.java:217)\n\tat com.mulesoft.agent.external.handlers.tooling.ToolingRequestHandler.lambda$deployToolingApplication$11(ToolingRequestHandler.java:368)\n\tat com.mulesoft.agent.util.ResponseHelper.response(ResponseHelper.java:88)\n\tat

I redeployed application, restarted worskpace...
yuko2019yuko2019
Same behavior, could it be solved?