Prashant Vikram
02/29/2024, 9:21 AMtap-freshdesk
while trying to extract data. Specifically, I'm receiving a 'FatalAPIError' with a 400 status code. Has anyone encountered a similar issue before or have any insights on how to resolve it?
Issue Description: Unhandled Error Encountered While Syncing 'tickets_abridged' in Meltano
An unhandled error is occurring during the synchronization process of the 'tickets_abridged' data stream while transferring data from Freshdesk to Snowflake using Meltano's tap-freshdesk and target-snowflake connectors. The issue arises specifically when executing the sync operation, resulting in a FatalAPIError
being raised with the associated error message.
Error Message:
raise FatalAPIError(msg)
[info] singer_sdk.exceptions.FatalAPIError: 400 Client Error: Bad Request for path: /api/v2/tickets
Detailed Description: Upon initial execution, the data transfer process successfully moves a significant portion of the data for all other schemas and failed for tickets_abridged after moving few thousand records leading to incomplete data synchronization. Even after re-running the operation, only a fraction of the remaining data for tickets_abridged is getting transferred before encountering the same error again. Any guidance is much appreciated.
Issue link: tap-freshdesk issue
@Andy CarterAndy Carter
02/29/2024, 10:09 AMmeltano invoke tap-freshdesk
and see if the same error occurs? Do you get any output at all from other streams before the 400 error? Can you check your credentials / API are correct using the freshdesk api directly via postman or similar?Andy Carter
02/29/2024, 10:14 AMmeltano.yml
with credentials removed too if you canPrashant Vikram
02/29/2024, 11:28 AMtickets_abridged
but failed after dumping few records for tickets_abridged.
By far what we've dubugged we think it's a pagination issue where it's not rightly interpreting the last page hence returning the FatalAPIError: 400 Client Error: Bad Request for path: /api/v2/tickets
Andy Carter
02/29/2024, 11:41 AMAndy Carter
02/29/2024, 11:46 AM--clean
?Andy Carter
02/29/2024, 11:47 AMAndy Carter
02/29/2024, 11:48 AMapi/v2/tickets
path so it could be eitherAndy Carter
02/29/2024, 11:50 AMabridged
stream to find the tickets it needs to read api/v2/tickets
, then attempts to read each one specifically at api/v2/tickets/12345
to get more detail. If ticket 12345 has been deleted between the abridged run then the detail run might fail.Andy Carter
02/29/2024, 12:00 PM404 Client Error: Not Found for path: /api/v2/tickets/1000
Can you replicate the error and share the traceback here?Prashant Vikram
02/29/2024, 12:19 PMPrashant Vikram
02/29/2024, 12:30 PMAndy Carter
02/29/2024, 12:44 PMAndy Carter
02/29/2024, 12:44 PMmeltano.yml
for the freshdesk tap without api keyAndy Carter
02/29/2024, 12:46 PMtarget-jsonl
or just a simple meltano invoke tap-freshdesk
to see if it's a target issueAndy Carter
02/29/2024, 12:46 PMAndy Carter
02/29/2024, 12:49 PMmayank_sardana
03/01/2024, 5:33 AMpage=301
, it throws 400 error. We looked at the code and it doesn't specify when it stop (if page 300 still has non empty data). Though we are a bit confused why would API return so much data even when we are passing today's date in updated_since
Andy Carter
03/01/2024, 8:38 AMmayank_sardana
03/01/2024, 8:39 AMmayank_sardana
03/01/2024, 9:05 AMcustom_fields
key but noticed in our case there are keys that are coming through at top level rather than custom_fields
in some of the streams (e.g. contacts, tickets_abridged). How do you think we can handle this?
We are getting warning like this:
Properties ('csat_rating', 'preferred_source', 'other_companies', 'unique_external_id', 'first_name', 'last_name', 'visitor_id', 'org_contact_id', 'other_phone_numbers') were present in the 'contacts' stream but not found in catalog schema.
Andy Carter
03/01/2024, 9:24 AMAndy Carter
03/01/2024, 9:26 AMcustom_fields
object into top-level keys. Could you test with target-jsonl
to see if this is snowflake-specific behaviour please?mayank_sardana
03/01/2024, 9:48 AMAndy Carter
03/01/2024, 10:14 AMmayank_sardana
03/01/2024, 10:17 AMPrashant Vikram
03/07/2024, 12:02 PMAndy Carter
03/07/2024, 1:04 PMPrashant Vikram
03/11/2024, 6:16 PMAndy Carter
03/12/2024, 8:20 AMAndy Carter
03/12/2024, 8:25 AM