You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a topic a couple of days ago on the community forum but would like to ask also here, and maybe if this feature is not available but it's possible to add it to start a discussion what you think about it.
I have a requirement that I need to call the dash server with my application using HTTP requests. Let's say that I have my application under url localhost:8000/app. In this application, I have a simple callback in which I am creating my figure based on some dropdown menu values. In this callback, I added a very simple feature for parsing URL parameters. And what I want to achieve is to call my application URL with an HTTP request, because inside callback I have a logic that whenever user pass in the URL in query string ?download=true then inside my callback figure will be saved to a png file using Plotly library.
So is it possible to make HTTP requests to the dash application?
I tried to make HTTP requests with the curl and python requests module, but it seems that the dash server doesn’t see this request, but on the other hand, if I directly go do the localhost:8000/app?download=true in my web browser then saving the image locally in png format works, but if I do this programmatically it doesn’t.
It’s very strange that you can’t make a request to the server – is there any kind of middleware that filters this kind of “not-human” requests or maybe it's a feature in Dash enterprise?
The text was updated successfully, but these errors were encountered:
Hey there!
I wrote a topic a couple of days ago on the community forum but would like to ask also here, and maybe if this feature is not available but it's possible to add it to start a discussion what you think about it.
I have a requirement that I need to call the dash server with my application using HTTP requests. Let's say that I have my application under url
localhost:8000/app
. In this application, I have a simple callback in which I am creating my figure based on some dropdown menu values. In this callback, I added a very simple feature for parsing URL parameters. And what I want to achieve is to call my application URL with an HTTP request, because inside callback I have a logic that whenever user pass in the URL in query string?download=true
then inside my callback figure will be saved to a png file using Plotly library.So is it possible to make HTTP requests to the dash application?
I tried to make HTTP requests with the curl and python requests module, but it seems that the dash server doesn’t see this request, but on the other hand, if I directly go do the
localhost:8000/app?download=true
in my web browser then saving the image locally in png format works, but if I do this programmatically it doesn’t.So here is sample of code to make it more clear:
It’s very strange that you can’t make a request to the server – is there any kind of middleware that filters this kind of “not-human” requests or maybe it's a feature in Dash enterprise?
The text was updated successfully, but these errors were encountered: