Questions tagged [request]

A request is a message sent by a source to another object.

A request is a message sent by a source (e.g. computer, client, browser ...etc) to another object or device (e.g. server, computer, phone, app ...etc).

src : wikipedia link

17442 questions
3
votes
1 answer

How to download big file & resume download after interuption in Node.js

I wrote an app that downloads big zip files and extracts them using request and unzipper. I've also managed to show downloading progress but the requirement is that it has to be able to resume download after an interuption (internet goes down or the…
Tolis Oug
  • 86
  • 3
3
votes
1 answer

urequests only working on specific websites

I am using a nodemcu esp8266 and the plan is to make a spotify api request to automate playing some songs, and I have a fully functional python script that does exactly that, but when I tried to convert it to upython it failed. I have now spent…
3
votes
1 answer

python - aiohttp.ClientSession().post

So, I had this code and it worked perfectly fine: def upload_to_imgur(url): j1 = requests.post( "https://api.imgur.com/3/upload.json", headers=headers, data={ 'key': api_key, 'image':…
Ben
  • 33
  • 6
3
votes
0 answers

How to download a large zip file > 25 GB using Python?

I am trying to download this file of 25+ GB. The problem is that I don't have enough memory to fit it into RAM and while downloading it with chrome, I get connection errors. I used the cli command as kaggle datasets download -d…
Deshwal
  • 3,436
  • 4
  • 35
  • 94
3
votes
0 answers

asyncio.run() cannot be called from an event loop

I'm trying to call a function in async function and the problem is asyncio.run() don't work in a loop event Here is the RuntimeError: asyncio.run() cannot be called from a running event loop. I also tried to use nest_asyncio.apply() but it's show…
MOK
  • 58
  • 1
  • 6
3
votes
3 answers

How to get more than 10 search results from the IMDB API?

I am trying to suggest movies to an user who has entered a movie genre, e.g. "horror", "sci-fi", etc. For this, I have written a function that makes an API call towards the IMDB API: import requests def search_movies(search, api_key): movies =…
3
votes
1 answer

req.headers.authorization is undefined when I make a POST request to my API route in production (works in local dev server)

When I serve my application locally, I can access req.headers.authorization to read my Bearer Token. The same code is used in my deployed application, but when I make the same POST request to my live API route, req.headers is undefined in my NextJS…
3
votes
1 answer

Pass a variable from next.js middleware to api req

I'm trying to pass a middleware variable to my API pages through "req" but it's not working I tried to send user token to pages using the "req", but it always returns null my middleware: pages/api/users/_middleware.ts import { NextRequest,…
Sasuke
  • 120
  • 4
3
votes
1 answer

Why Doesn't my Authorization Header need "Bearer"?

I am currently working with a group of applications that are running on two separate, but equivalent, environments (Referred to as ENV1 and ENV2). I have been using OAuth 2.0 for Authorization and when I receive a response after requesting an access…
Flats
  • 81
  • 1
  • 13
3
votes
1 answer

Expose Content-Disposition header on NextJS

I'm trying to get the Content-Disposition header in a response from an external API using axios. Despite the header being present in Chrome DevTools Network Response, I can't seem to have access to that specific header from server. I found this…
f-starace
  • 278
  • 1
  • 17
3
votes
1 answer

How to make infinite async requests every 10ms inside a loop?

Do I need to use threads too? I'm new to async, I was doing it creating 1 thread for every request that I wanted to do, but it was very "inefficient". I want something like: def async_request(i): response = requests.post(url, headers=headers,…
aesthetic
  • 41
  • 1
  • 5
3
votes
0 answers

Flutter: Request is taking too long to process

I am running my application in development (debug) mode on local machine so I'm not sure how much this affects network requests. The target device where the app is running is Android emulator. I have an endpoint which fetches some data, this data…
user3056783
  • 2,265
  • 1
  • 29
  • 55
3
votes
1 answer

What does atlOrigin query parameter mean in Jira URL?

When I open a Jira issue link from a third party or copy from a clipboard I always find the URL looks like this: https://mycompany.atlassian.net/browse/comapnyAlias-issueNumber?atlOrigin=longCharacters I am curious what does atlOrigin means? and why…
Amr
  • 433
  • 5
  • 12
3
votes
3 answers

Is it necessary to encrypt the payload before sending out the post request?

I'm using angular as my frontend to do a login panel and send a post request to the backend which is a express API. My domain has a SSL already, so the safety between the transfer should be good. But I'm wondering when I open the devtool and check…
Suspended
  • 169
  • 2
  • 11
3
votes
1 answer

React Apollo Client, loading only change to true on first time query

I have a simple structure of files on a same directory (./src/) App.js import React from "react"; import { ApolloClient, ApolloProvider, createHttpLink, InMemoryCache, } from "@apollo/client"; import Gql from "./Gql"; const App = () => { …
David Yappeter
  • 1,434
  • 3
  • 15
1 2 3
99
100