Hello Team , i am building graphql custom tap but ...
# troubleshooting
m
Hello Team , i am building graphql custom tap but getting below error wile running
poetry run pytest
FAILED tap_cj/tests/test_core.py::test_standard_tap_tests - singer_sdk.exceptions.FatalAPIError: 400 Client Error: Bad Request for path:
and catalog discovery failed error while running
meltano --log-level=debug elt tap-cj target-csv
Copy code
raise CliError(f"ELT could not be completed: {err}") from err
meltano.cli.utils.CliError: ELT could not be completed: Cannot start extractor: Catalog discovery failed: invalid catalog: Expecting value: line 1 column 1 (char 0)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/meltano/cli/__init__.py", line 52, in main
    raise CliError(str(err)) from err
meltano.cli.utils.CliError: ELT could not be completed: Cannot start extractor: Catalog discovery failed: invalid catalog: Expecting value: line 1 column 1 (char 0)
ELT could not be completed: Cannot start extractor: Catalog discovery failed: invalid catalog: Expecting value: line 1 column 1 (char 0)
Below is my query
Copy code
query = "query (
$forAdvertisers: [String!]!){
advertiserCommissions
(forAdvertisers: $forAdvertisers)
{count payloadComplete }}"
Json response:
Copy code
{
  "data": {
    "advertiserCommissions": {
      "count": 467,
      "payloadComplete": true
    }
  }
}
And this is the json schema.
Copy code
{
  "type": "object",
  "properties": {
    "advertiserCommissions": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        },
        "payloadComplete": {
          "type": "boolean"
        }
      }
    }
  }
}
If someone faced this issue and can help that would be great. @aaronsteers Can you please look this issue?