# Weird behavior in services from midnight

**URL:** https://community.appfarm.io/t/weird-behavior-in-services-from-midnight/359
**Category:** Bug reports
**Created:** [March 17, 2023, 8:12am UTC](https://community.appfarm.io/t/weird-behavior-in-services-from-midnight/359 "2023-03-17T08:12:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sondre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sondre/32/105_2.png) [@Sondre](https://community.appfarm.io/u/Sondre)
#### Post date: [March 17, 2023, 8:12am UTC](https://community.appfarm.io/t/weird-behavior-in-services-from-midnight/359/1 "2023-03-17T08:12:21Z")

</div>

Hi, at midnight a service that has not been changed suddenly started giving errors without web request body, 1 timeout and at least 2 of this message:  
The request was made and the server responded with a status code that falls out of the range of 2xx

502 Bad Gateway
# 502 Bad Gateway

* * *
nginx/1.21.6

The web request in postman works fine.

In addition some other services seems to fail in PROD in addition to this. These unfurtunatly dont have any error logging attached so im not sure what is failing there. Would be nice if you guys could take a look 🙂

---

<div class="post-metadata">

### Author: ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)
#### Post date: [March 17, 2023, 9:02am UTC](https://community.appfarm.io/t/weird-behavior-in-services-from-midnight/359/2 "2023-03-17T09:02:05Z")

</div>

Hi! Do you have the solution name and approximate time of incident?

---

<div class="post-metadata">

### Author: ![Sondre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sondre/32/105_2.png) [@Sondre](https://community.appfarm.io/u/Sondre)
#### Post date: [March 17, 2023, 9:31am UTC](https://community.appfarm.io/t/weird-behavior-in-services-from-midnight/359/3 "2023-03-17T09:31:16Z")

</div>

Sent more info in dm, but its from midnight and seemingly better but still ongoing.

---

<div class="post-metadata">

### Author: ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)
#### Post date: [March 21, 2023, 7:40am UTC](https://community.appfarm.io/t/weird-behavior-in-services-from-midnight/359/4 "2023-03-21T07:40:23Z")

</div>

Just updating on this one: A combined issue. The service failing was due to the logic/model (`Create Object` into a single `Cardinality: One` non-empty data source without `Replace All Objects` enabled). However, some tuning of schedules vs performance/load still needs to be evaluated.
