Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendgrid-go inbound.Parse fails with panic. #36

Open
phat-innomizetech opened this issue Jul 10, 2023 · 0 comments
Open

sendgrid-go inbound.Parse fails with panic. #36

phat-innomizetech opened this issue Jul 10, 2023 · 0 comments

Comments

@phat-innomizetech
Copy link

I've set up Inbound Email Parse Webhook. In the webhook I use https://github.com/sendgrid/sendgrid-go lib.

inbound.Parse method fails with a panic for some of the received HTTP requests
I used example raw data with parseRawEmail function from Inbound parse helper and get errors : panic address or nil pointer dereference

Raw example:
--001a11447dc881e40b0537fe6d58
Content-Type: text/plain; charset=UTF-8

This is a test email with 1 attachment.
Screen Shot 2023-07-05 at 17 01 20

--001a11447dc881e40b0537fe6d58
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

This is a test email with 1 attachment.
<= div>
--


--001a11447dc881e40b0537fe6d58--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant