# 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:** 12

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [February 25, 2025, 5:17am UTC](https://meta.discourse.org/t/sendgrid-nomethoderror-undefined-method-for-nil-nilclass/285221/12 "2025-02-25T05:17:46Z")

</div>

@cultiv Thank you for diving into the problem here and taking the time to submit a PR. I’ve used your PR as a base and merged a fix for the issue in [FIX: No method error in `WebhooksController#sendgrid` (#31495) · discourse/discourse@209d289 · GitHub](https://github.com/discourse/discourse/commit/209d289772bb87b96190c654adf73f982eafedfb).

---

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