# 429 errors on like action in production.log

**URL:** https://meta.discourse.org/t/429-errors-on-like-action-in-production-log/178458
**Category:** Self-hosting
**Created:** [February 4, 2021, 8:25pm UTC](https://meta.discourse.org/t/429-errors-on-like-action-in-production-log/178458 "2021-02-04T20:25:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [February 4, 2021, 8:25pm UTC](https://meta.discourse.org/t/429-errors-on-like-action-in-production-log/178458/1 "2021-02-04T20:25:40Z")

</div>

I wonder which problem may be causing 429 error to appear in production.log.

I’m getting 99% of these in `PostActionsController` context.

```
Processing by PostActionsController#create as */*
  Parameters: {"id"=>"706335", "post_action_type_id"=>"2", "flag_topic"=>"false"}
Completed 429 Too Many Requests in 16ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 5715)

```

I know that global rate limiting is done in layer above by nginx in the container and these type of errors end in `/shared/standalone/log/var-log/nginx/error.log`..

So the question is under which circumstances this error is thrown in `production.log`?

I’d like to get rid of these if possible..

Do you get some 429 (not caused by rate limiting) in your setups too?

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [February 4, 2021, 8:34pm UTC](https://meta.discourse.org/t/429-errors-on-like-action-in-production-log/178458/2 "2021-02-04T20:34:24Z")

</div>

`post_action_type_id = 2` means this is a like. If a user is trying to like a post and they’ve used all their likes for the day, this will generate a 429 error. I’m going to guess that’s what is happening in this instance.

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [February 4, 2021, 8:38pm UTC](https://meta.discourse.org/t/429-errors-on-like-action-in-production-log/178458/3 "2021-02-04T20:38:25Z")

</div>

Haha, spot on.. My users really like what they read! 🤓

Thanks, that is relieving..!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 4, 2021, 9:50pm UTC](https://meta.discourse.org/t/429-errors-on-like-action-in-production-log/178458/4 "2021-02-04T21:50:42Z")

</div>

> [@justin](#):
>
> If a user is trying to like a post and they’ve used all their likes for the day, this will generate a 429 error.

Aha! I suspect that explains the 429s in a site that I manage. It’s a very busy site, and I was afraid that it was hitting some other kind of problem. This is great to know!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 6, 2021, 9:51pm UTC](https://meta.discourse.org/t/429-errors-on-like-action-in-production-log/178458/5 "2021-03-06T21:51:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
