We have a python script which pulls data form an API endpoint this way: We got to this point and we do see the data in record_list, however we don’t know how to parse the data and insert it into a table. We tried: but it seems it is not a list, so what it is and how to import
Tag: api
Somehow my Fask API returns me old values
In debug: I run ng serve on my angular project, make the request and receive the updated values In production I update de files of the API and the angular project, make the request and receive old data. If I open the API link in a new tab I get the updated values, even the files in the server are
A class with a mutable variable. API token
I am trying to create an API client, but the problem is that the token changes every hour. I want to create a class that contains a “token” variable that should change every hour. The idea is to get a token when first run the script, create this object and use it. I have a function that successfully receives a
Python~JSON error → json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I was working on my discord bot and found a api(named numapi) which i want to use, i made a prototype in my pc which was ↓↓↓↓ and it worked fine. But when i copied the same thing in my discord bot then it was not working. The code and error are as follows :- code error pls help me
How would you filter through a JSON file and pick out the relevant keys in Python 3.9.x?
I am trying to filter through an API (JSON format). I am pretty new to this and have no idea where to start. For simplicity’s sake, I will only give part of the API output I would technically get. I am using Python 3, specifically Python 3.9.2. The output I would like is something like the following: As you can
how do POST API requests use parallel processing in python? requests.exceptions.ConnectionError:
I have code like this: in file data.json contains 500 records, for example: in BASE_URL there is data like this: expected output after POST API: with my code above, the data that enters the url is only 420 records, even though my data.json is 500 records. how do I solve this so that I post 500 records to url. I
HTTPS POST to query FastAPI using python requests
I am trying to serve a Neural Network using FastAPI. The manual site http://localhost:8000/docs#/default/predict_predict_post works fine and translates into the following curl command: which also works. When I try to query the API using python requests: I only get the “422 Unprocessable Entity” Errors. Where am I going wrong here? Answer You provide a data argument to requests.post, which does
Python – Dynamics CRM Web API – SuppressDuplicateDetection Not working
I am running into an issue with the ability to Suppress Duplicate Detection in the Dynamics CRM API. I am qualifying leads and the Duplicate Detection is getting triggered on some of the leads. I have some logic to decide if we want to suppress the so on certain leads I want to bypass that detection. What is happening is
Cant decode HTTP Response to JSON (Python3)
I am running a series of API tests and this one is giving me an error. As far as I can tell response.read() converts the HTTP response into binary and then decode() converts that binary into a string but it’s an empty string. When I copy paste the binary string into Python3 (b'{“error”: {“code”: “INVALID_TOKEN”, “description”: “”}}’) and issue a
Installing quickfix using pip keeps running forever
Goal: I want to be able to use quickfix Problem: When running pip install quickfix all I get is the following N.B: I waited for the wheel building for around 15 minutes I don’t think this should take that much right? Context: I am using docker and I have the python3.7 image Tried to fix it: downloaded the quickfix-1.15.1.tar.gz file