From 68b46bbec911d35cf5a8a084b112038325e00500 Mon Sep 17 00:00:00 2001 From: Vincent de Saboulin Date: Thu, 9 Jan 2025 14:51:59 +0100 Subject: [PATCH] fix for #5695 --- connect/connect-marketo-source/marketo-source.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/connect/connect-marketo-source/marketo-source.sh b/connect/connect-marketo-source/marketo-source.sh index 0221eabcc..ac25003db 100755 --- a/connect/connect-marketo-source/marketo-source.sh +++ b/connect/connect-marketo-source/marketo-source.sh @@ -44,14 +44,14 @@ playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker- log "Creating an access token" ACCESS_TOKEN=$(docker exec connect \ - curl -X GET \ + curl -s -X GET \ "${MARKETO_ENDPOINT_URL}/identity/oauth/token?grant_type=client_credentials&client_id=$MARKETO_CLIENT_ID&client_secret=$MARKETO_CLIENT_SECRET" | jq -r .access_token) log "Create one lead to Marketo" LEAD_FIRSTNAME=John_$RANDOM LEAD_LASTNAME=Doe_$RANDOM docker exec connect \ - curl -X POST \ + curl -s -X POST \ "${MARKETO_ENDPOINT_URL}/rest/v1/leads.json?access_token=$ACCESS_TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ @@ -69,6 +69,8 @@ fi # playground debug log-level set --package "org.apache.http" --level TRACE +playground topic create --topic marketo_leads + log "Creating Marketo Source connector" playground connector create-or-update --connector marketo-source << EOF {