Questions tagged [Flask] (530)

2
answers

How to find the cause of "Exception: transaction idle timeout" in the application Flask+psycopg2+postgresql+pgbouncer?

There was a problem. Every month the web application was stopped with an error 502. The reason postgresql has stopped processing requests because the limit was exceeded number of connections. The process list showed a bunch of open pending compounds that block some request. Moreover, the request was quite ordinary, which is...
Agustin53 asked April 19th 20 at 12:39
1
answer

What's the problem?

Began to use long polling in my application, in General, that here is the code: <html> the <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script src="{{ url_for("static", filename="poll.js") }}"></script> </head> the <body> &...
Deron asked April 19th 20 at 12:26
0
answer

How to send POST request using AJAX and Flask MethodView?

All kind time of day! There's an app Flask view function which written using the class MethodView from the module flask.views. Most of the represent the vyuha forms (used by Flask-WTF), respectively, they defined methods get and post. How can I rewrite the code so that the method post is executed asynchronously using AJAX, ...
Lora_Co asked April 18th 20 at 13:36
1
answer

How to configure access to swagger.the json for a domain name?

Hello. On the server running Flask via uwsgi (127.0.0.1:56733), access proximedia using nginx. In the browser, but the JS is trying to load the swagger.json local URL, which ultimately leads to the error: Fetch errorFailed to fetch http://127.0.0.1:56733/swagger.json In the end, can't get the generated documentation to the ...
bryce.Osinski asked April 18th 20 at 12:41
2
answers

How to set up the account in qiwi Cass python using their API?

Hello! Trying to make a bill in QIWI at this documentation: https://developer.qiwi.com/ru/bill-payments/#create My code: headers={'Accept': 'application/json', 'Authorization': 'Bearer SECRET_KEY', } params={'billId': 'I don't know what', 'amount.value': 100.00, 'amount.currency': 'RUB', } requests.get(URL, params=pa...
Colby.Kreiger asked April 18th 20 at 12:23
0
answer

How to overcome error "psycopg2.ProgrammingError..."?

Hi! I have always an error occurs psycopg2.ProgrammingError: execute cannot be used while an asynchronous query is underway As I understand it it's because I'm trying to use the data while the query is still not executed. how can I fix it? I use something like this, if you reduce the code to just a visual example: def wait(...
Tami asked April 18th 20 at 12:17
1
answer

How to connect hooks qiwi on the server (python)?

Hello! Not fully understand how to make so that I came the notification to the server about the new payment in Qiwi? Maybe someone faced similar issue and have found articles on the Internet?
nicholas_Donnelly asked April 16th 20 at 11:22
2
answers

Is the implementation of the mobile version of the site?

Good day, colleagues. Has this stack: 1) Flask (restapi) server 2) Vuejs, which communicates with the server through the api There is a need to write a mobile version of the site (not adaptiv, namely the standalone version, as vk.com and m.vk.com) should look like the implementation? Apply mixins on vuejs page, so component...
Vickie.Hoeger asked April 16th 20 at 10:26
4
answers

How to test service And that accesses the service B without picking up locally service B (Python, Flask)?

The problem is known, but can't find the solution in my implementation. We have the following. Service And performs some useful work. Service B - the authenticator that the request And confirms the right to appeal. I.e. when you request service With the service And the latter refers to B and updates the validity of the aut...
1
answer

How to display error in Flask, if it arises at ads. dB for the user when passing data from forms?

Hello. A question. I submit the form the ajax request on the server side, I accept and everything is fine, but let's say there is a problem with entering data into the database. I would like that the user can see the error that the message is not passed. How is it possible realizovati? @app.route('/', methods=['GET', 'POST'...
drew.Dare asked April 16th 20 at 10:11