# Dash multipage app, request flask return localproxy unbound

**URL:** <https://community.plotly.com/t/dash-multipage-app-request-flask-return-localproxy-unbound/68704>\
**Category:** Dash Python\
**Tags:** question\
**Created:** [October 7, 2022, 8:43pm UTC](https://community.plotly.com/t/dash-multipage-app-request-flask-return-localproxy-unbound/68704 "2022-10-07T20:43:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![StevSoza](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/stevsoza/32/20556_2.png) [@StevSoza](https://community.plotly.com/u/StevSoza)\
**Post date:** [October 7, 2022, 8:43pm UTC](https://community.plotly.com/t/dash-multipage-app-request-flask-return-localproxy-unbound/68704/1 "2022-10-07T20:43:03Z")

</div>

i have an application of dash, i moved from 2.5.1 way to do multipages to 2.6.1 register\_pages , but now i have a problem with the flask request, before i moved, the request take the data correctly, but now i only got '\< Localproxy unbound \> ’

any suggestions!?

![localProxy_unbound](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/e/e/ee33a7fafd4411fc2de3f39f48ad2cc921adf907.png)

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [October 7, 2022, 10:35pm UTC](https://community.plotly.com/t/dash-multipage-app-request-flask-return-localproxy-unbound/68704/2 "2022-10-07T22:35:02Z")

</div>

@StevSoza,

What does your app.py look like?

---

<div class="post-metadata">

**Author:** ![StevSoza](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/stevsoza/32/20556_2.png) [@StevSoza](https://community.plotly.com/u/StevSoza)\
**Post date:** [October 7, 2022, 10:57pm UTC](https://community.plotly.com/t/dash-multipage-app-request-flask-return-localproxy-unbound/68704/3 "2022-10-07T22:57:39Z")

</div>

```auto
import dash
#import os
#import sys
from dash import html, callback, dcc, Input, Output
import dash_bootstrap_components as dbc
import plotly.graph_objects as go
#import getpass
import pprint

#sys.path.append(os.path.dirname(sys.path[0]))

external_stylesheets = [dbc.themes.BOOTSTRAP, 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css']
app = dash.Dash( __name__ , use_pages=True, external_stylesheets=external_stylesheets)

app.layout = dbc.Container([
        dash.page_container                                                        
])
        
if __name__ == " __main__":                                             
    app.run(debug=True, host='127.0.0.1',port=3004)

```

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [October 7, 2022, 11:06pm UTC](https://community.plotly.com/t/dash-multipage-app-request-flask-return-localproxy-unbound/68704/4 "2022-10-07T23:06:01Z")

</div>

I think you need to put the print(request) inside of a def layout() function. It looks like your app is setup right.

---

<div class="post-metadata">

**Author:** ![StevSoza](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/stevsoza/32/20556_2.png) [@StevSoza](https://community.plotly.com/u/StevSoza)\
**Post date:** [October 7, 2022, 11:13pm UTC](https://community.plotly.com/t/dash-multipage-app-request-flask-return-localproxy-unbound/68704/5 "2022-10-07T23:13:07Z")

</div>

@jinnyzor ,

that works! thanks a lot!
