[Flask] Getting 404 on one endpoint on one system

Larry Martell larry.martell at gmail.com
Thu Aug 22 11:11:32 EDT 2019


On Thu, Aug 22, 2019 at 9:25 AM Adam Englander via Flask
<flask at python.org> wrote:
>
> Do you have code that looks up an entity and returns a 404 if not found? That tends to be how I get that difference in two environments.

Indeed that is exactly what was happening. I did not write the code so
I did not realize that was the case. I discovered that late yesterday.

> > Date: Wed, 21 Aug 2019 13:49:34 -0400
> > From: Larry Martell <larry.martell at gmail.com>
> > To: flask at python.org
> > Subject: [Flask] Getting 404 on one endpoint on one system
> > Message-ID:
> >    <CACwCsY78pw3Suoe-orh3aj9TG_k5psQ-=pd69D_wtx3KxMFrDQ at mail.gmail.com>
> > Content-Type: text/plain; charset="UTF-8"
> >
> > I have a flask app deployed on 2 systems. On one system all endpoints
> > work. On the other 1 endpoint gives a 404 (all the others work).  I
> > have verified that the code is identical on both systems. Anyone have
> > any thoughts on what could be going on or how I can debug this?
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Wed, 21 Aug 2019 17:58:53 +0000
> > From: Yu-Xuan Dong <yuxuan.dong at outlook.com>
> > To: Larry Martell <larry.martell at gmail.com>, "flask at python.org"
> >    <flask at python.org>
> > Subject: Re: [Flask] Getting 404 on one endpoint on one system
> > Message-ID:
> >    <SL2PR03MB41556A95A6D9779BD7443253FEAA0 at SL2PR03MB4155.apcprd03.prod.outlook.com>
> >
> > Content-Type: text/plain; charset="gb2312"
> >
> > It may be caused by your HTTP server config. What HTTP server are you using and how do you canfigure it?
> >
> > YX. D.
> > ________________________________
> > ???: Flask <flask-bounces+yuxuan.dong=outlook.com at python.org> ?? Larry Martell <larry.martell at gmail.com>
> > ????: Thursday, August 22, 2019 1:49:34 AM
> > ???: flask at python.org <flask at python.org>
> > ??: [Flask] Getting 404 on one endpoint on one system
> >
> > I have a flask app deployed on 2 systems. On one system all endpoints
> > work. On the other 1 endpoint gives a 404 (all the others work).  I
> > have verified that the code is identical on both systems. Anyone have
> > any thoughts on what could be going on or how I can debug this?
> > _______________________________________________
> > Flask mailing list
> > Flask at python.org
> > https://mail.python.org/mailman/listinfo/flask
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <http://mail.python.org/pipermail/flask/attachments/20190821/a515a2c0/attachment-0001.html>
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Wed, 21 Aug 2019 14:03:11 -0400
> > From: Larry Martell <larry.martell at gmail.com>
> > To: Yu-Xuan Dong <yuxuan.dong at outlook.com>
> > Cc: "flask at python.org" <flask at python.org>
> > Subject: Re: [Flask] Getting 404 on one endpoint on one system
> > Message-ID:
> >    <CACwCsY4cBw_WM0_Qufmje_haZ2R99Qisc3ZVDRJc3MWdSZF-jw at mail.gmail.com>
> > Content-Type: text/plain; charset="UTF-8"
> >
> >> On Wed, Aug 21, 2019 at 1:58 PM Yu-Xuan Dong <yuxuan.dong at outlook.com> wrote:
> >>
> >> It may be caused by your HTTP server config. What HTTP server are you using and how do you canfigure it?
> >
> > mod_wsgi-express but I get the same results running from the command line.
> >
> >>
> >> YX. D.
> >> ________________________________
> >> ???: Flask <flask-bounces+yuxuan.dong=outlook.com at python.org> ?? Larry Martell <larry.martell at gmail.com>
> >> ????: Thursday, August 22, 2019 1:49:34 AM
> >> ???: flask at python.org <flask at python.org>
> >> ??: [Flask] Getting 404 on one endpoint on one system
> >>
> >> I have a flask app deployed on 2 systems. On one system all endpoints
> >> work. On the other 1 endpoint gives a 404 (all the others work).  I
> >> have verified that the code is identical on both systems. Anyone have
> >> any thoughts on what could be going on or how I can debug this?
> >> _______________________________________________
> >> Flask mailing list
> >> Flask at python.org
> >> https://mail.python.org/mailman/listinfo/flask
> >
> >
> > ------------------------------
> >
> > Message: 4
> > Date: Thu, 22 Aug 2019 04:17:53 +0000
> > From: Yu-Xuan Dong <yuxuan.dong at outlook.com>
> > To: Larry Martell <larry.martell at gmail.com>
> > Cc: "flask at python.org" <flask at python.org>
> > Subject: Re: [Flask] Getting 404 on one endpoint on one system
> > Message-ID:
> >    <SL2PR03MB41554501883076242C85C676FEA50 at SL2PR03MB4155.apcprd03.prod.outlook.com>
> >
> > Content-Type: text/plain; charset="gb2312"
> >
> > You mean it has the same issue even you use the dev server of Flask?
> >
> > 1. Do Python/Flask on two system have the same version?
> >
> > 2. Could you provide your definition code of the endpoint?
> >
> > YX. D.
> > ________________________________
> > ???: Larry Martell <larry.martell at gmail.com>
> > ????: Thursday, August 22, 2019 2:03:11 AM
> > ???: Yu-Xuan Dong <yuxuan.dong at outlook.com>
> > ??: flask at python.org <flask at python.org>
> > ??: Re: [Flask] Getting 404 on one endpoint on one system
> >
> >> On Wed, Aug 21, 2019 at 1:58 PM Yu-Xuan Dong <yuxuan.dong at outlook.com> wrote:
> >>
> >> It may be caused by your HTTP server config. What HTTP server are you using and how do you canfigure it?
> >
> > mod_wsgi-express but I get the same results running from the command line.


More information about the Flask mailing list