Category "get"

How to create a test Unit method for a get request that fetches Data from Database(MongoDB)?

Get request method in tasks.js file const { Task } = require('../model/Tasks.js') const asyncWrapper =require('../middleware/async') const getTask = asyncWrapp

PHP sends an empty Response Payload instead of JSON

Sorry if I'm not good at formulating questions or if this isn't a good question, but I've been trying for days and getting no progress on this and I'm ready to

crawl website with requests and problem is Object.setPrototypeOf

i'm trying to crawl website with python requests GET and having problem with Object.setPrototypeOf i added userAgent in header but it still gives me under code

How to do a get request to SpringBoot java with an Array<Array<string>>?

I am doing a get request in angular with typescript and here it is: this.http.get("http://localhost:8080/data-management/data-users/getAllGeneralInfoCV/"+this.l

Flutter - Can't get collection from firestore

_getLatestCompletedWorkout() async { try { QuerySnapshot workouts; workouts = await FirebaseFirestore.instance .collection('users')

I am trying to understand what exactly is signature query parameter in binance

I am trying to access this endpoint, where signature parameter has to be sent as query parameter https://binance-docs.github.io/apidocs/spot/en/#current-open-or

403 when requesting Image URL in Python - works locally but not on PythonAnywhere

I'm trying to write a twitter bot using Python that just tweets images on a schedule and selects a random one from an array of URLs. I'm hosting the images on i

How to send body data and headers with axios get request?

I've tried axios.get(url, {headers:{},data:{}}) But it doesn't work with this.

AJAX: Can I POST an array/data from my GET request? (Flask)

question similar to AJAX/FLASK/JS: How to POST existing array into endpoint?, a new question I've posted but this doesn't specifically help with the new issue,

How to make a httpsrequest 'Get' in apex and then update a record in Salesforce

Overview: We have a third party what hosts a text value at a given endpoint. Using a 'Get' request to a url where we also pass a key and parameters returns a

SocketException (SocketException: Failed host lookup: 'test' (OS Error: nodename nor servname provided, or not known, errno = 8))

I've looked elsewhere and every site keeps telling me this is effectively an internet connectivity error... But I know that can't be correct. I'm using Flutte

Error: The type cast expression is expected to be wrapped with parenthesis when using get function

im new to javascript and im trying to make a get request to a youtube API. I have preconfigured a few things related to the request before making it using axios

flutter passing multiple data with getx

I want to Pass multiple data from one screen to another screen with Get package. Get.to(Second(), arguments: ["First data", "Second data"]);

Display GET Request data in HTML

This endpoint http://vk-data:8003/v1/entries/ returns this: [ { "id": "country", "url": "http://vk-data:8003/v1/entries/country", "n

Download a json file using Python or Curl not working

Download a json file using Python or Curl not working url here: https://api.nasdaq.com/api/screener/stocks?tableonly=true&limit=25&offset=0&download

How to get path parameter in spring cloud function

I have a java application written using spring-cloud-functions and deployed in aws lambda which connects to aws api-gateway I have a 'GET' api(let's say /employ

Conditionally use next.js app or create react app with the same website domain according to users login

I have a website which I've built with CRA, node.js and I want to use ISR for most of the pages. The problem is that about 20% of the users are registered users

java.lang.IllegalArgumentException: HTTP method annotation is required (e.g., @GET, @POST, etc.).Error when trying call apiInterface GET request

I get error when trying to call API interface get request. I am trying to pass a value through GET method. But I get this error in logcat Caused by: java.lang

Getting "TypeError: Failed to fetch" when the request hasn't actually failed

I'm using fetch API within my React app. The application was deployed on a server and was working perfectly. I tested it multiple times. But, suddenly the appli

Getting "TypeError: Failed to fetch" when the request hasn't actually failed

I'm using fetch API within my React app. The application was deployed on a server and was working perfectly. I tested it multiple times. But, suddenly the appli