App will update on refresh locally but not on AWS Beanstalk

I’ve used Dash frequently and have built 5-6 apps/websites over the last year and a half. I’m currently trying to create a live refresh with hidden divs which update on page reload. This works great locally, but it does not work when the app is deployed to elastic beanstalk. I’ll post the callback that will trigger the first callback which then triggers updates to dropdowns and data refreshes.

 Output('ksu-hitters', 'children'),
 [Input('url', 'pathname')])
def get_ksu_hitter_data(input1):
 client = pymongo.MongoClient(Taken out for privacy)
   'Batter': 1

 result = client['K-State']['Scrimmage'].find(
 df = pd.DataFrame(list(result))
 df = df.drop(columns = ['_id'])
 return df.to_json(date_format='iso', orient='split')

I will also include my callback map incase that is helpful