# SendGrid - NoMethodError (undefined method \`\[\]' for nil:NilClass)

**URL:** <https://meta.discourse.org/t/sendgrid-nomethoderror-undefined-method-for-nil-nilclass/285221>\
**Category:** Bug\
**Created:** [November 11, 2023, 10:24pm UTC](https://meta.discourse.org/t/sendgrid-nomethoderror-undefined-method-for-nil-nilclass/285221 "2023-11-11T22:24:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)\
**Post date:** [November 13, 2023, 11:21am UTC](https://meta.discourse.org/t/sendgrid-nomethoderror-undefined-method-for-nil-nilclass/285221/4 "2023-11-13T11:21:23Z")

</div>

There might be something going on with the event payload being received from Sendgrid. It seems `status` isn’t being set on the `bounce` events as expected.

> [@KCAS](#):
>
> Not sure about if they’re bounces, how could we check? I

 ![Screenshot 2023-11-13 at 11.15.51 AM](https://global.discourse-cdn.com/meta/original/4X/6/4/3/64301ab859bb27112afed177c029155f45712c25.png)

Assuming you got the backtrace from logster at `<YOUR_SITE>/logs`, the env tab should have the request details. Could you provide a sanitized copy of the payload from there?

---

_[View the full topic](https://meta.discourse.org/t/sendgrid-nomethoderror-undefined-method-for-nil-nilclass/285221)._
