Hi there,
When routing my plugin’s HTTP’s requests through the data proxy, the request path is being double encoded. I confirmed this looking at the following logs:
nortech-cloud-datasource | logger=data-proxy-log t=2024-12-17T15:05:42.155837169Z level=info msg="Proxying incoming request" userid=0 orgid=1 username= datasource=nortech-cloud-datasource uri=/api/datasources/proxy/uid/P56681010B853E1AB/api/v1/workspaces/Our%20devices method=GET panelPluginId= body=
nortech-cloud-datasource | logger=data-proxy-log t=2024-12-17T15:05:42.156249211Z level=debug msg=Requesting url=http://localhost:2022/api/v1/workspaces/Our%2520devices
In the frontend I’m calling a URL ending with “/Our devices”, which is expectedly converted to “/Our%20devices”. However the Grafana backend is encoding it again, which changes the path to “/Our%2520devices” which is not an expected value by our API. Is this expected behaviour? Is there a way to avoid the second encoding?
Thanks for the help!