Skip to main content
Best practices
1 vote
8 replies
92 views

I am making API Calls and expect to get some null responses or NoneTypes. However I am trying to handle them gracefully. This is the default behavior: res = req.json() res.get("key", {})....
Capeya's user avatar
  • 43
0 votes
0 answers
31 views

I’m integrating ERPNext (Frappe Framework) with the Pakistan FBR DI API. I’m facing a strange issue: When I send the request using cURL, the invoice is accepted successfully. When I send the exact ...
Marium Faisal's user avatar
0 votes
1 answer
99 views

I'm building a kind of gallery app. Users are adding images by inserting URLs into the database and the HTML page is then hotlinking those. Obviously, because of link rotting, the gallery is full of ...
Shady Medic's user avatar
1 vote
1 answer
98 views

I'm encountering a consistent Connection timed out error when my application, running on a local development server, tries to make HTTP requests to a specific external website. The site loads ...
Oliver Haven's user avatar
Best practices
1 vote
3 replies
88 views

If I need to authenticate with a certificate, I have a few options available: Add the certificate to the bundle packaged with requests/certifi Add the certificate to the system store and override ...
Chris Decker's user avatar
0 votes
0 answers
63 views

When querying the referral sources endpoint on GitHub I'm only getting an empty list returned. I can get data for other endpoints in the same repo, even for other traffic endpoints. I'm expecting ...
mjpeterson's user avatar
3 votes
3 answers
115 views

Calling an api. For almost all calls the response comes clean but for a few there is garbage in the returned json. Executing the garbage one in the Firefox browser with the same parameters returns ...
Clodoaldo Neto's user avatar
0 votes
1 answer
72 views

I'm working on integration tests for a web application that's running in a Docker container within our GitLab CI/CD pipeline. The application is a frontend that requires Kerberos/SPNEGO authentication ...
ben green's user avatar
-2 votes
0 answers
55 views

The Python code: from bs4 import BeautifulSoup import requests ##################################################### # Extracting the links of multiple movie transcripts ##############################...
Mo Bilal's user avatar
1 vote
0 answers
51 views

What I found While using the requests library for HTTP requests, I noticed that there were many TCP connections in the FIN_WAIT2 state on the server. Through code analysis, I found that these ...
oyealex's user avatar
  • 11
0 votes
1 answer
155 views

I have a serverless pipeline on Google Cloud. It consists of three total steps: A video uploader that sends videos to Google Cloud Storage. Working fine. An eventarc + pub/sub trigger that fires ...
Raul Chiarella's user avatar
3 votes
1 answer
90 views

I try to post large file and read response as streaming with requests python library. I have to send a large text file (2 million lines of log ) and receive response back as streaming. If I did by ...
mathieu's user avatar
  • 93
0 votes
0 answers
80 views

I am attempting to improve my python by working on a side-project, just interacting with websites to look at avaialble golf tee times. Zero intention/plans to do anything commercial, this is just a ...
tman's user avatar
  • 439
0 votes
0 answers
53 views

I checked a lot of trouble-shoot topics, but didn't find what might be wrong here... (This is a second attempt at fixing this issue, but this time I dug deeper.) I'm going off this API documentation: ...
ErikDB's user avatar
  • 69
1 vote
1 answer
234 views

I’ve been trying to scrape lottery results from a website that shows draws. The data is presented in a results table, but I keep running into strange issues where sometimes the numbers are captured ...
Zuryab's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
1469