Replies: 4 comments 12 replies
-
Did you specify the safrs/examples/demo_pythonanywhere_com.py Line 276 in cf75e82 |
Beta Was this translation helpful? Give feedback.
-
Some debug tips:
|
Beta Was this translation helpful? Give feedback.
-
Maybe increase the debug level in `app.config`, or by setting the `FLASK_DEBUG` env var.
Thomas Pollet
…________________________________
From: hyh1618 ***@***.***>
Sent: Wednesday, November 16, 2022 7:50:35 PM
To: thomaxxl/safrs ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [thomaxxl/safrs] docker CORS error (Discussion #134)
It's sqlite. I can start the app and see the home page, just when I run any end point it throw this error. The sqlite db did created, and my other program in same docker tested sqlite OK. The problem should be with safrs/sqlalchemy/flask
—
Reply to this email directly, view it on GitHub<#134 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKVH5W6LSUNIQSPC5VJBBYTWIUUHXANCNFSM6AAAAAASCLFGEI>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks, it fixed that error!
…On Wed, Nov 16, 2022 at 11:55 PM Thomas Pollet ***@***.***> wrote:
Oh, you get that error. #127
<#127>
Can you downgrade Flask-SQLAlchemy to v2.5.1?
—
Reply to this email directly, view it on GitHub
<#134 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANENUR3SVUENLTCI2L5DUGDWIW3FVANCNFSM6AAAAAASCLFGEI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Thomaxxl,
Please help. I have code working fine, but when go into a docker instance, as the hostname is not normal: it has internal hostname not available to outside, and outside hostname not reachable by running process. I can bring up the swagger page, but any action will throw "CORS, Network Failure, URL scheme must be http or https for CORS request". I think the problem is that SAFRS is getting generated swagger files as local file, not through http. Any idea on a quick fix?
I did add line of "cors = CORS(app, resource ...), not help.
Beta Was this translation helpful? Give feedback.
All reactions