hello! I'm running into an error for `tap-amazon-...
# troubleshooting
t
hello! I'm running into an error for
tap-amazon-advertising
~ I'm not sure where to start to debug since I provided the required configurations (and can confirm that I have successfully curled an api call in my terminal as well) (errors in thread)
Copy code
(venv_meltano) tls-MacBook-Pro:tl-meltano-project tl$ meltano invoke tap-amazon-advertising
2023-10-25T03:53:03.196371Z [info     ] Environment 'dev' is active
INFO Starting sync.
INFO Syncing stream profiles with ProfilesStream
{"type": "SCHEMA", "stream": "profiles", "schema": {"properties": {"profileId": {"description": "The ID of the profile", "type": "integer"}, "countryCode": {"description": "The country code identifying the publisher(s) on which ads will run", "type": "string"}, "currencyCode": {"description": "The currency used for all monetary values for entities under this profile", "type": "string"}, "dailyBudget": {"description": "The optional budget shared by all entities created under this profile", "minimum": 1, "type": "number"}, "timezone": {"description": "The tz database time zone used for all date-based campaign management and reporting.", "type": "string"}, "accountInfo": {"properties": {"marketplaceStringId": {"description": "The string identifier for the marketplace associated with this profile. This is the same identifier used by MWS", "type": "string"}, "id": {"description": "The string identifier for the ID associated with this account", "type": "string"}, "name": {"description": "The string identifier for the account name", "type": "string"}, "type": {"description": "The type of account being called", "type": "string"}}, "type": "object"}}, "type": "object"}, "key_properties": ["profileId"]}
INFO Syncing data for entity profiles
INFO Making GET request to <https://advertising-api.amazon.com/v2/profiles> ({})
INFO Received code: 400
ERROR <!DOCTYPE html><html><head><title>x</title></head><body></body></html>

ERROR Failed to sync endpoint profiles, moving on!
CRITICAL <!DOCTYPE html><html><head><title>x</title></head><body></body></html>

Traceback (most recent call last):
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/bin/tap-amazon-advertising", line 8, in <module>
    sys.exit(main())
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/lib/python3.7/site-packages/singer/utils.py", line 192, in wrapped
    return fnc(*args, **kwargs)
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/lib/python3.7/site-packages/tap_amazon_advertising/__init__.py", line 31, in main
    runner.do_sync()
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/lib/python3.7/site-packages/tap_framework/__init__.py", line 78, in do_sync
    raise e
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/lib/python3.7/site-packages/tap_framework/__init__.py", line 68, in do_sync
    stream.sync()
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/lib/python3.7/site-packages/tap_framework/streams.py", line 138, in sync
    return self.sync_data()
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/lib/python3.7/site-packages/tap_amazon_advertising/streams/base.py", line 47, in sync_data
    url, self.API_METHOD, params=params, body=body)
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/lib/python3.7/site-packages/tap_amazon_advertising/client.py", line 73, in make_request
    return self._make_request(url, method, params, body).json()
  File "/Users/tl/tl-meltano-project/.meltano/extractors/tap-amazon-advertising/venv/lib/python3.7/site-packages/tap_amazon_advertising/client.py", line 68, in _make_request
    raise RuntimeError(response.text)
RuntimeError: <!DOCTYPE html><html><head><title>x</title></head><body></body></html>