question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Hard to debug valid JSON contents in generated catalog file

See original GitHub issue

Meltano Version

1.79.0

Python Version

3.9

Bug scope

CLI (options, error messages, logging, etc.)

Operating System

Python Docker image

Description

Following an upgrade from 1.76.0 to 1.79.0 I get the following error when trying to run once of our pipelines:

[2022-10-12 22:20:20,005] {pod_launcher.py:176} INFO - Event: tap-yodel-cat-target-snowflake.26bf63e794b442c7b35a66827cb0c95a had an event of type Running
[2022-10-12 22:20:20,018] {pod_launcher.py:136} INFO - meltano                       | Running extract & load...
[2022-10-12 22:20:20,018] {pod_launcher.py:136} INFO - meltano                       | Found state from 2022-10-12 20:00:11.154879.
[2022-10-12 22:20:21,612] {pod_launcher.py:136} INFO - meltano                       | ELT could not be completed: Cannot start extractor: Catalog discovery failed: invalid catalog: Expecting value: line 1 column 1 (char 0)

No further error is given. Not sure how to move past this or resolve the problem. I’m going to try upgrading to an even later version to try and solve the problem.

Code

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
edgarrmondragoncommented, Oct 14, 2022

Is this instead about an issue loading the existing catalog?

@alanmcruickshank Doesn’t look like. This line in the debug output suggests it’s generating the catalog:

Invoking: ['C:\\Users\\alanc\\dev\\tails-data-meltano\\meltano\\.meltano\\extractors\\tap-yodel\\venv\\Scripts\\tap-yodel', '--config', 'C:\\Users\\alanc\\dev\\tails-data-meltano\\meltano\\.meltano\\run\\tap-yodel\\tap.3c21d13d-81a8-42e8-a690-6776beb3e578.config.json', '--discover']

This make me think that the generated config is not right, and the tap depends on config to generate the catalog?

How would the output of --discover look like when using the config generated by Meltano:

pipenv run meltano invoke --dump=config tap-yodel > config.json
pipenv run tap-yodel --config config.json --discover
1reaction
DouweMcommented, Oct 13, 2022

@alanmcruickshank Can you try running with meltano --log-level=debug ... so we get some additional details?

Read more comments on GitHub >

github_iconTop Results From Across the Web

--cli-input-json error message very misleading · Issue #3491 ...
I am new to aws cli, and recently discovered the --cli-input-json ... seems like indicates the file format was wrong, not a valid...
Read more >
Why can't Python parse this JSON data? - Stack Overflow
Your data is not valid JSON format. You have [] when you should have {} for the "masks" and "parameters" elements: [] are...
Read more >
How to Fix the Invalid JSON Response Error in WordPress
The response is not a valid JSON response," it will typically appear when you're working on content in the WordPress Block Editor.
Read more >
Troubleshooting AWS IoT Greengrass
Solution: You might see this error when the AWS IoT Greengrass Core software does not start. Make sure the Greengrass configuration file is...
Read more >
How to Fix The Invalid JSON Error in WordPress (Beginner's ...
Are you seeing the JSON response is not valid error on your ... a log of all errors in a debug.log file located...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found