Scatter_mapbox not updating in deployed app

Hi,

I am using scatter_mapbox to plot a geographical map in my dash app and then i am changing the markers on the graph using a callback function. When i run the app locally, the map is updated acccordingly, however when i deploy the app in an aws environment, the map does not update. Has anyone come across this beahviour? If so, how can I fix it to work even when deployed.

I have confirmed that the mapbox access token is visible to the app when deployed.

Thanks.