400 error adding a ticket to Gorgias

This topic was automatically generated from Slack. You can find the original thread here.

Dillon Lara : I have an error on an integration from twitter to gorgias chat. Can someone help me out?
> Your workflow at https://pipedream.com/@/p_PACBZp9?e=1vNBKCfpjnVbbHkIJiBRiuEOWKs generated the following error at 11:43:19 PM UTC on Thursday, July 15th, 2021:
>
> Error — Request failed with status code 400

Dylan Sather (Pipedream) : would you mind clicking the Share button at the top-right of your workflow and share it with dylan@pipedream.com?

Dillon Lara : shared with ya!

Dylan Sather (Pipedream) : It looks like they require you to pass a “type” param under the “source” object (along with from and extra) that’s one of the values they list in the error message below the step. Try adding “type”: “email” under the source object in the array of messages.

Dillon Lara : added, are you able to test or provide information on how I can test?

Dylan Sather (Pipedream) : I tested by hovering over the most recent event that yielded the 400 and clicking the arrow in a circle, which replays the event on the latest version of your workflow.

Dylan Sather (Pipedream) : It yielded another 400 error. It looks like the "type": "email" param was under the root object within the messages block, so I moved it to the source section. That cleared that error, but now it’s saying that the provided email address isn’t valid: https://pipedream.com/@saunaspace/create-ticket-in-gorgias-on-twitter-hastag-mention-p_NMCMPJG/edit?e=1wBv3ax6oYHWJNYIzlpTWh3UIhq

Dillon Lara : which email?

Dylan Sather (Pipedream) : sorry, I didn’t see that you were passing screen name here, and I thought it was an email, which is why I recommended you put type: email there. I just tried it with type: "twitter-tweet" and it looks like it worked

Dillon Lara : ok thanks

Dylan Sather (Pipedream) : Here’s the full list of potential type options if that one doesn’t make sense there:

Choose one source type from: aircall, api, app, chat, email, facebook-comment, facebook-message, facebook-messenger, facebook-post, facebook-mention-post, facebook-mention-comment, facebook, facebook-review, facebook-review-comment, form, helpdesk, instagram-ad-comment, instagram-ad-media, instagram-comment, instagram-mention-comment, instagram-media, instagram-mention-media, instagram, instagram-direct-message, internal-note, ottspott-call, phone, rule, shopify, sms, system-message, twilio, twitter-tweet

Dillon Lara : what would we need to do to get email to work?

Dylan Sather (Pipedream) : You may want to ask the team from Gorgias since they’ll be able to give you a better answer. It looks like you were passing the Twitter screen name, which is why it failed when we passed type: email. It looks like Gorgias validates that email address, which is why it told us it wasn’t a valid email

Thank you. I’ll reach out to them today.