[Flask] Getting 404 on one endpoint on one system

Adam Englander adamenglander at yahoo.com
Thu Aug 22 09:24:55 EDT 2019


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.

Adam Englander

> On Aug 21, 2019, at 9:17 PM, flask-request at python.org wrote:
> 
> Send Flask mailing list submissions to
>    flask at python.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://mail.python.org/mailman/listinfo/flask
> or, via email, send a message with subject or body 'help' to
>    flask-request at python.org
> 
> You can reach the person managing the list at
>    flask-owner at python.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Flask digest..."
> 
> 
> Today's Topics:
> 
>   1. Getting 404 on one endpoint on one system (Larry Martell)
>   2. Re: Getting 404 on one endpoint on one system (Yu-Xuan Dong)
>   3. Re: Getting 404 on one endpoint on one system (Larry Martell)
>   4. Re: Getting 404 on one endpoint on one system (Yu-Xuan Dong)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> 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.
> 
>> 
>> 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/20190822/bb2909b1/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
> 
> 
> ------------------------------
> 
> End of Flask Digest, Vol 50, Issue 16
> *************************************



More information about the Flask mailing list