Hi, While setting up "Square" as a source. I am g...
# replication-troubleshooting
s
Hi, While setting up "Square" as a source. I am getting some weird issues. When I set
API token
, it says
Invalid OAuth Token
. And, when I set
OAuth Token
, it says
Invalid API token
. Weird! I've attached screenshots. It would be great if somebody can look into this. Thanks
Error log (when we set API token):
Copy code
2023-01-26 13:53:36 INFO i.a.w.t.TemporalAttemptExecution(get):136 - Docker volume job log path: /tmp/workspace/393a26d1-e5b7-46d2-9845-c4c0737b3233/0/logs.log
2023-01-26 13:53:36 INFO i.a.w.t.TemporalAttemptExecution(get):141 - Executing worker wrapper. Airbyte version: 0.40.29
2023-01-26 13:53:36 INFO i.a.a.c.AirbyteApiClient(retryWithJitter):172 - Attempt 0 to save workflow id for cancellation
2023-01-26 13:53:36 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-01-26 13:53:36 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- START CHECK -----
2023-01-26 13:53:36 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-01-26 13:53:36 INFO i.a.c.i.LineGobbler(voidCall):114 - Checking if airbyte/source-square:0.2.0 exists...
2023-01-26 13:53:36 INFO i.a.c.i.LineGobbler(voidCall):114 - airbyte/source-square:0.2.0 was found locally.
2023-01-26 13:53:36 INFO i.a.w.p.DockerProcessFactory(create):123 - Creating docker container = source-square-check-393a26d1-e5b7-46d2-9845-c4c0737b3233-0-ozzrt with resources io.airbyte.config.ResourceRequirements@57f6f2d2[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=]
2023-01-26 13:53:36 INFO i.a.w.p.DockerProcessFactory(create):168 - Preparing command: docker run --rm --init -i -w /data/393a26d1-e5b7-46d2-9845-c4c0737b3233/0 --log-driver none --name source-square-check-393a26d1-e5b7-46d2-9845-c4c0737b3233-0-ozzrt --network host -v airbyte_workspace:/data -v /tmp/airbyte_local:/local -e DEPLOYMENT_MODE=OSS -e USE_STREAM_CAPABLE_STATE=true -e FIELD_SELECTION_WORKSPACES= -e AIRBYTE_ROLE= -e WORKER_ENVIRONMENT=DOCKER -e APPLY_FIELD_SELECTION=false -e WORKER_JOB_ATTEMPT=0 -e WORKER_CONNECTOR_IMAGE=airbyte/source-square:0.2.0 -e AUTO_DETECT_SCHEMA=true -e AIRBYTE_VERSION=0.40.29 -e WORKER_JOB_ID=393a26d1-e5b7-46d2-9845-c4c0737b3233 airbyte/source-square:0.2.0 check --config source_config.json
2023-01-26 13:53:36 INFO i.a.w.i.VersionedAirbyteStreamFactory(create):102 - Reading messages from protocol version 0.2.0
2023-01-26 13:53:39 INFO i.a.w.g.DefaultCheckConnectionWorker(run):114 - Check connection job received output: io.airbyte.config.StandardCheckConnectionOutput@1ed7f551[status=failed,message=Config validation error: 'OAuth Credentials' was expected]
2023-01-26 13:53:39 INFO i.a.w.t.TemporalAttemptExecution(get):163 - Stopping cancellation check scheduling...
2023-01-26 13:53:39 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-01-26 13:53:39 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- END CHECK -----
2023-01-26 13:53:39 INFO i.a.c.i.LineGobbler(voidCall):114 -
Error log (when we set OAuth token):
Copy code
2023-01-26 13:51:58 INFO i.a.w.t.TemporalAttemptExecution(get):136 - Docker volume job log path: /tmp/workspace/545ad37b-96bc-4de5-a7dc-ab0a0c223606/0/logs.log
2023-01-26 13:51:58 INFO i.a.w.t.TemporalAttemptExecution(get):141 - Executing worker wrapper. Airbyte version: 0.40.29
2023-01-26 13:51:58 INFO i.a.a.c.AirbyteApiClient(retryWithJitter):172 - Attempt 0 to save workflow id for cancellation
2023-01-26 13:51:58 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-01-26 13:51:58 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- START CHECK -----
2023-01-26 13:51:58 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-01-26 13:51:58 INFO i.a.c.i.LineGobbler(voidCall):114 - Checking if airbyte/source-square:0.2.0 exists...
2023-01-26 13:51:58 INFO i.a.c.i.LineGobbler(voidCall):114 - airbyte/source-square:0.2.0 was found locally.
2023-01-26 13:51:58 INFO i.a.w.p.DockerProcessFactory(create):123 - Creating docker container = source-square-check-545ad37b-96bc-4de5-a7dc-ab0a0c223606-0-qljud with resources io.airbyte.config.ResourceRequirements@57f6f2d2[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=]
2023-01-26 13:51:58 INFO i.a.w.p.DockerProcessFactory(create):168 - Preparing command: docker run --rm --init -i -w /data/545ad37b-96bc-4de5-a7dc-ab0a0c223606/0 --log-driver none --name source-square-check-545ad37b-96bc-4de5-a7dc-ab0a0c223606-0-qljud --network host -v airbyte_workspace:/data -v /tmp/airbyte_local:/local -e DEPLOYMENT_MODE=OSS -e USE_STREAM_CAPABLE_STATE=true -e FIELD_SELECTION_WORKSPACES= -e AIRBYTE_ROLE= -e WORKER_ENVIRONMENT=DOCKER -e APPLY_FIELD_SELECTION=false -e WORKER_JOB_ATTEMPT=0 -e WORKER_CONNECTOR_IMAGE=airbyte/source-square:0.2.0 -e AUTO_DETECT_SCHEMA=true -e AIRBYTE_VERSION=0.40.29 -e WORKER_JOB_ID=545ad37b-96bc-4de5-a7dc-ab0a0c223606 airbyte/source-square:0.2.0 check --config source_config.json
2023-01-26 13:51:58 INFO i.a.w.i.VersionedAirbyteStreamFactory(create):102 - Reading messages from protocol version 0.2.0
2023-01-26 13:52:00 INFO i.a.w.g.DefaultCheckConnectionWorker(run):114 - Check connection job received output: io.airbyte.config.StandardCheckConnectionOutput@64af25db[status=failed,message=Config validation error: 'API Key' was expected]
2023-01-26 13:52:00 INFO i.a.w.t.TemporalAttemptExecution(get):163 - Stopping cancellation check scheduling...
2023-01-26 13:52:00 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-01-26 13:52:00 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- END CHECK -----
2023-01-26 13:52:00 INFO i.a.c.i.LineGobbler(voidCall):114 -
a
Hey can you down grade square version and try
n
Hey! I've been able to replicate the errors. Could you please open an issue on GitHub - make sure to follow the template and fill out all the details and include complete logs (Are these logs complete?) Then link it here and I'll triage it to the appropriate team.
👌 1
s
Hey @Nataly Merezhuk (Airbyte), I have created an issue. Please triage it to the appropriate team. Thanks 🙂 https://github.com/airbytehq/airbyte/issues/21953
@Akilesh V, FYI downgrading didn't work sadparrot But, downgrading airbyte version worked. seems, there is some issue with recent code change
👀 1
n
Thanks so much, @Sabbiu Shah!
s
Hey @Nataly Merezhuk (Airbyte) I've created a PR that fixes this issue on the python side. But, somehow the Java side of things is still referencing old
spec.yaml
file. Please take a look. Thanks https://github.com/airbytehq/airbyte/issues/21953#issuecomment-1409719284
u
Thank you, I'll look into it!
🙏 1