i create api using fastapi framework and i have deployed on heroku, the main function of this api is i have to send (post method) element as query parameter every 5s and i store it in tinydb and get method to show all values stored.
a problem is if i send 10 post requests i didn't get all 10 request (i can't show all values sent by this requests.
i create function to increment value of variable every time when go into post methods and if i send 10 post requests i get variable = 6 or 7 or ... not 10, so i lost some requests.
but in local i have api run perfectly.
bad: lost some post requests fastapi
297 views Asked by Kamel Menazeli At
1
There are 1 answers
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in API
- Google Sheets API - Append Request not working
- Is there really no product for docs that has these?
- How to show suggested content in response using Azure Cognitive Search?
- error message when closing current position in binance futures, using ccxt library
- How to filter API data in React Native
- I have fetched an API with JS, but the output looks really bad and I don't know how to fix it
- Session is not storing in react and Asp Dot Core Web API
- Apex charts not rendering series value, showing cannot map values of NULL
- Configure IIS to accept API calls only from API Manager, Deny from direct calls
- Problems with API return using the Axios library in NextJS
- How to query by Iteration in pyral?
- Is there a way to have a user enter a url query and have a single function filter a database?
- Cant get value in Vue from data
- Read stories/posts using instagram API
- Need To Make Minor Change To REST API Response
Related Questions in HEROKU
- How to get Heroku Support to answer an email?
- Duplicate GET requests - Rails & Heroku
- I am struggling to get a 200 success request for my Heroku-hosted API on Rapid API for GET requests. I only receive a '404 page not found' error
- Heroku Deployment Error: Failed to Push Some Refs to Git Repository
- NOT WORKING domain.com/cv WORK domain.com/cv/ www.bluetrendy.com/cv www.bluetrendy.com/cv/ any ideas?
- I'm going nuts with Heroku session management issues
- Images stored on google drive are not loading on a website hosted on heroku
- Deploy Springboot app on heroku which is using google storage services
- How to run mitmproxy in Heroku?
- Celery Task Tracing ValueError: Unpacking Issue in a Flask Web App Migration, python backend
- Unable to push changes via git behind Proxy with Heroku
- Failed docker deployment: Cannot find module '/app/heroku'
- Request timeout error (H12) on Heroku deployment for website scraping and Excel generation
- Stripe doesn't work after deploying on Heroku by Django
- I got CORS error when trying to do a request in my app in Heroku
Related Questions in FASTAPI
- Query parameter works fine with fastapi application when tested locally but not working when the FastAPI application is deployed on AWS lambda
- The selection of specific columns in SQLAlchemy in scalars does not work
- I can't call a FastAPI POST route using Python's "requests" module, but I'm able to call the same route via cURL command line
- Creating bar chart in FastAPI
- How to give index id to my uploaded json file in FastAPI?
- Elasticbeanstalk FastAPI application is intermittently not responding to https requests
- how to set same port on fastapi and eureka?
- Calls to external API work when running code as a script, but receive `500 Internal Server Error` response when using FastAPI to run the same code?
- How to assign label to nested Basemodel in pydantic with fastapi
- Validation for multiple fields on pydantic BaseModel
- Model Path not found in Sagemaker Inference
- fastapi adding eureka is throwing RuntimeError: Cannot run the event loop while another loop is running
- mTLS not working with FastAPI and Uvicorn
- fastapi docs , Pydantic BaseModel, request example missing
- Intermittent Hangs on Large File Uploads in FastAPI Before Reaching Endpoint
Related Questions in TINYDB
- App Inventor TinyDb data not properly stored
- How to store an ArrayList<Uri> of in Shared Preferences in Java
- TinyDB problem, cannot resolve symbol 'context'
- tinydb search transform string to where query
- Get list of values at specific position in TinyDB
- How to query for a specific key in TinyDB?
- TinyDB update only part of document
- Flask whit tinydb pop up this error when i try to delete a field
- Serialize Python object in another object with json?
- bad: lost some post requests fastapi
- Query() in TinyDB with multiple files
- Creating a listing of all files in a large directory (and subdirectories) in Python 3
- Query nested JSON in TinyDB
- TinyDb caching data when an update is performed, but never updating the json document
- tinydb search,insert,update errors
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
TinyDB is not compatible with multiple processes writing data to it at the same time.
As far as I can tell it has no native locking support, so you'll have to implement that yourself in that case. In this case, if multiple nodes are handling requests, the TinyDB file will also be local to that specific node that handled the request, making it impossible to have one source of truth.