eli_c.
05/26/2023, 5:58 AMpat_nadolny
05/26/2023, 1:47 PMAndy Carter
05/26/2023, 4:04 PMconversations
endpoint? The tap should already be configured to give you that. If there's another endpoint in the docs (https://developers.freshdesk.com/api/) you would like then let me know.
Can you share your meltano.yml and I'll take a look.eli_c.
05/26/2023, 4:11 PMacarter24
variant. Yes the conversations, for now with the default configuration I only get the initial message, no responses or replies.
version: 1
default_environment: dev
project_id: 88ce441c-e6a8-4af8-9bd8-20d220e34a4d
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-freshdesk
variant: acarter24
pip_url: git+<https://github.com/acarter24/tap-freshdesk.git>
config:
domain: fd2j
start_date: '2023-05-20'
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
eli_c.
05/26/2023, 4:11 PMAndy Carter
05/26/2023, 4:13 PMconversations
endpoint being synced when you run?eli_c.
05/26/2023, 4:13 PMeli_c.
05/26/2023, 4:14 PMAndy Carter
05/26/2023, 4:16 PMeli_c.
05/26/2023, 4:18 PMAndy Carter
05/26/2023, 4:21 PMeli_c.
05/26/2023, 4:23 PM{
"cc_emails": [],
"fwd_emails": [],
"reply_cc_emails": [],
"ticket_cc_emails": [],
"fr_escalated": false,
"spam": false,
"email_config_id": 150000090571,
"group_id": 150000274008,
"priority": 1,
"requester_id": 150023570532,
"responder_id": 150023158907,
"source": 1,
"company_id": 150000698050,
"status": 6,
"subject": "How to download the abc",
"association_type": null,
"support_email": "<mailto:support@fd2j.freshdesk.com|support@fd2j.freshdesk.com>",
"to_emails": [
"<mailto:support@fd2j.freshdesk.com|support@fd2j.freshdesk.com>"
],
"product_id": 150000047073,
"id": 4,
"type": null,
"due_by": "2023-05-30T21:00:00Z",
"fr_due_by": "2023-05-26T21:00:00Z",
"is_escalated": false,
"description": "<div dir=\"ltr\">\n<div style='box-sizing:border-box;word-break:break-word;color:rgb(24,50,71);font-family:-apple-system,\"system-ui\",\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;font-size:14px'>Hi!</div>\n<div style='box-sizing:border-box;word-break:break-word;color:rgb(24,50,71);font-family:-apple-system,\"system-ui\",\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;font-size:14px'><br style=\"box-sizing:border-box\"></div>\n<div style='box-sizing:border-box;word-break:break-word;color:rgb(24,50,71);font-family:-apple-system,\"system-ui\",\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;font-size:14px'>We have a control center license and want to download the latest version of control center for the license, how do I do it?</div>\n<div style='box-sizing:border-box;word-break:break-word;color:rgb(24,50,71);font-family:-apple-system,\"system-ui\",\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;font-size:14px'><br style=\"box-sizing:border-box\"></div>\n<div style='box-sizing:border-box;word-break:break-word;color:rgb(24,50,71);font-family:-apple-system,\"system-ui\",\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;font-size:14px'>Regards</div>\n<div style='box-sizing:border-box;word-break:break-word;color:rgb(24,50,71);font-family:-apple-system,\"system-ui\",\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;font-size:14px'>Summer Time</div>\n</div>\n\n",
"description_text": "Hi Summer,\r\n\r\nMy appologies, that was a bad link.\r\n\r\nHere you go: download here.\r\n\r\nThanks,\r\nEli\r\n\r\n",
"custom_fields": {
"cf_reference_number": null
},
"created_at": "2023-05-26T04:04:02Z",
"updated_at": "2023-05-26T04:09:37Z",
"tags": []
}
eli_c.
05/26/2023, 4:27 PMAndy Carter
05/26/2023, 4:29 PMcurl -v -u yourapikey:X -H "Content-Type: application/json" -X GET '<https://fd2j.freshdesk.com/api/v2/tickets/4/conversations>'
Andy Carter
05/26/2023, 4:30 PMAndy Carter
05/26/2023, 4:31 PMeli_c.
05/26/2023, 4:36 PMeli_c.
05/26/2023, 4:39 PMeli_c.
05/26/2023, 4:42 PMeli_c.
05/26/2023, 4:44 PMeli_c.
05/26/2023, 4:51 PMandy_carter
05/26/2023, 5:11 PMeli_c.
05/26/2023, 5:12 PMeli_c.
05/26/2023, 5:14 PMcurl -v -u yourapikey:X -H "Content-Type: application/json" -X GET '<https://fd2j.freshdesk.com/api/v2/tickets/4/conversations>'
where i see the information that’s missing in the jsonl file.andy_carter
05/26/2023, 5:14 PMandy_carter
05/26/2023, 5:14 PMeli_c.
05/26/2023, 5:15 PMandy_carter
05/26/2023, 5:26 PMeli_c.
05/26/2023, 5:31 PMandy_carter
05/26/2023, 5:39 PMeli_c.
05/26/2023, 5:40 PMpat_nadolny
05/26/2023, 5:42 PMin addition, when using target-csv the format will be messed up. it’s perfect with target-jsonl.@eli_c. this seems like it could be a different issue, potentially related to target-csv or the output format of the tap but it might be worth using a different thread for that since theres already a lot going on in this one 😄
andy_carter
05/26/2023, 6:36 PMeli_c.
05/26/2023, 6:38 PMeli_c.
05/26/2023, 6:44 PMandy_carter
05/26/2023, 7:32 PMandy_carter
05/26/2023, 7:33 PMeli_c.
05/27/2023, 4:18 PMMaybe try ‘meltano run tap-freshdesk target-jsonl --full-refresh’ and see if the state is the issue?This didn’t make any difference. Trying sqlite now.
eli_c.
05/28/2023, 8:59 PMeli_c.
05/28/2023, 9:15 PMandy_carter
05/29/2023, 9:13 AMAndy Carter
05/30/2023, 11:30 AMpip_url
and then doing meltano install --clean
.Andy Carter
05/30/2023, 11:31 AMpip_url: <https://github.com/acarter24/tap-freshdesk@1-add-new-fields-to-conversations-stream>
Andy Carter
05/30/2023, 11:40 AMtarget-postgres
and looked good to me. If you can verify I'll merge and make a new releaseeli_c.
05/30/2023, 7:19 PMeli_c.
05/30/2023, 7:20 PMpip_url
is
pip_url: git+<https://github.com/acarter24/tap-freshdesk.git>
eli_c.
05/30/2023, 7:25 PMpip_url: <https://github.com/acarter24/tap-freshdesk@1-add-new-fields-to-conversations-stream>
then did meltano install --clean
eli_c.
05/30/2023, 7:26 PMExtractor 'tap-freshdesk' could not be installed: failed to install plugin 'tap-freshdesk'.
eli_c.
05/30/2023, 7:26 PMERROR: HTTP error 404 while getting <https://github.com/acarter24/tap-freshdesk@1-add-new-fields-to-conversations-stream>
ERROR: Could not install requirement <https://github.com/acarter24/tap-freshdesk@1-add-new-fields-to-conversations-stream> because of HTTP error 404 Client Error: Not Found for url: <https://github.com/acarter24/tap-freshdesk@1-add-new-fields-to-conversations-stream> for URL <https://github.com/acarter24/tap-freshdesk@1-add-new-fields-to-conversations-stream>
pat_nadolny
05/30/2023, 7:27 PMgit+<https://github.com/acarter24/tap-freshdesk.git@1-add-new-fields-to-conversations-stream>
eli_c.
05/30/2023, 7:32 PMLoader failed
pat_nadolny
05/30/2023, 7:37 PMeli_c.
05/30/2023, 7:44 PMuser
05/30/2023, 7:48 PMLoader failed
message? I would suggest not using a loader yet to isolate the tap, run meltano invoke tap-freshdesk > output.json
to confirm that the tap runs successfully and your data is there. Then we can move on to isolating the target. We dont want a target issue to cause confusion with Andy's PR to get your new attributes addedeli_c.
05/30/2023, 7:51 PMWhere are you seeing theAfter changedmessage?Loader failed
pip_url
in yml, i ran meltano run tap-freshdesk target-jsonl
(and target-csv/target-sqlite
), all three loaders got the same error in the end:
2023-05-30T19:30:20.306661Z [error ] Loader failed
2023-05-30T19:30:20.306850Z [error ] Block run completed. block_type=ExtractLoadBlocks err=RunnerError('Loader failed') exit_codes={<PluginType.LOADERS: 'loaders'>: 1} set_number=0 success=False
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Run invocation could not be completed as block failed: Loader failed
user
05/30/2023, 7:52 PMmeltano invoke tap-freshdesk > output.json
what do you see?user
05/30/2023, 7:53 PMeli_c.
05/30/2023, 7:53 PMuser
05/30/2023, 7:53 PMeli_c.
05/30/2023, 7:56 PMeli_c.
05/30/2023, 7:56 PMeli_c.
05/30/2023, 7:58 PMAlso usually if you scroll up in the traceback that you shared it will eventually tell you the actual reason why the loader faileda few lines back:
2023-05-30T19:30:20.273584Z [info ] CRITICAL {'type': ['null', 'string']} cmd_type=elb consumer=True name=target-sqlite producer=False stdio=stderr string_id=target-sqlite
2023-05-30T19:30:20.273668Z [info ] CRITICAL cmd_type=elb consumer=True name=target-sqlite producer=False stdio=stderr string_id=target-sqlite
2023-05-30T19:30:20.273753Z [info ] CRITICAL On instance['attachments'][0]['id']: cmd_type=elb consumer=True name=target-sqlite producer=False stdio=stderr string_id=target-sqlite
2023-05-30T19:30:20.273834Z [info ] CRITICAL 150016672561 cmd_type=elb consumer=True name=target-sqlite producer=False stdio=stderr string_id=target-sqlite
2023-05-30T19:30:20.306661Z [error ] Loader failed
2023-05-30T19:30:20.306850Z [error ] Block run completed. block_type=ExtractLoadBlocks err=RunnerError('Loader failed') exit_codes={<PluginType.LOADERS: 'loaders'>: 1} set_number=0 success=False
user
05/30/2023, 8:08 PMthe output does not give enough details that you can be sure all the data is there, right?All the tap data should be in that output.json
user
05/30/2023, 8:09 PMa few lines back:thats getting closer! It looks like maybe an index error where some data is missing but if you scroll even higher it should give you more detail.
user
05/30/2023, 8:10 PMcat output.json | meltano invoke target-sqlite
to load that file of data into sqlite. This is identical to the process of running meltano run tap-freshdesk target-sqlite
so it will isolate the problemseli_c.
05/30/2023, 8:12 PMeli_c.
05/30/2023, 8:15 PM2023-05-30T19:30:20.272509Z [info ] 2023-05-30 15:30:20,271 | WARNING | tap-freshdesk | Properties ('attachments', 'source_additional_info', 'nr_due_by', 'nr_escalated') were present in the 'tickets_detail' stream but not found in catalog schema. Ignoring. cmd_type=elb consumer=False name=tap-freshdesk producer=True stdio=stderr string_id=tap-freshdesk
in the trace with different stream not found in catalog schema.eli_c.
05/30/2023, 8:20 PMpat_nadolny
05/30/2023, 8:26 PM.meltano/run/tap-freshdesk/
folder in your project. I think you might have a cached catalog file from the older version of the tap before you reinstalledeli_c.
05/30/2023, 8:27 PMeli_c.
05/30/2023, 8:32 PMuser
05/30/2023, 8:33 PMuser
05/30/2023, 8:34 PMeli_c.
05/30/2023, 8:34 PM