TypeError when creating new panels

Hey, when i try and add panels to the dashboard, i get the following: TypeError: Cannot read property ‘request’ of undefined

Grafana (v6.5.2 (commit: 742d165968)) is running behind nginx reverse proxy and runs on a sub-domain(my.domain.com), using Prometheus as a data source.

I’m able to create the panels when i access it directly via the IP, i have tried modifying the default config file, but without any success.