Questions tagged [response]

A response is a general term for a message which is sent as an answer for previously made request.

A response is a general term for a message which is sent as an answer for previously made request.

A request/response scheme is present in almost any communication protocol, particularly there message delivery is guaranteed, for example TCP, HTTP, etc.

Further Reading:

5919 questions
1
vote
0 answers

How to send 2 Videos file path and name using InputStream in java

The following code successfully sends one video file path and name, but I want to send 2 video path and name. How do I send 2nd video file path and name? InputStream inputStream = new…
Mayur Kandalkar
  • 204
  • 1
  • 5
  • 14
1
vote
1 answer

how to download file in ajax success using laravel response

i am making a zip file of PDFs and then download it in browser.. i have used ajax and want to receivce file in response so that i can download it. return response()->download(public_path().'/documents/'.$zipName , $zipName, $headers); this is the…
Jo-ji
  • 17
  • 1
  • 6
1
vote
1 answer

The response of Authentication grant code is 200 Ok. But not getting the code

The response of Authentication grand code for the request which i pass is 200 Ok. But am getting an html response in that. i couldn't find any code. Can You please help…
1
vote
1 answer

How to view large objects (eg as response object) that are too big to use in the CLI

I'm learning coding and NodeJS. One thing that I keep getting stuck on is trying to learn about the response object. It's massive and I'm not able to digest all the information I'm receiving when I console.log() or console.dir() it. One tool that is…
JimmyTheCode
  • 3,783
  • 7
  • 29
  • 71
1
vote
1 answer

marking box in an image from response request python

import requests import cv2 frame=cv2.imread('C:\\Users\\aaa\\Downloads\\abc.jpg') url = 'https://app.nanonets.com/api/v2/ObjectDetection/Model/4729a79f-ab19-4c1b-8fe9' data = {'file': open('C:\\Users\\aaa\\Downloads\\abc.jpg', 'rb')} response =…
Stig P
  • 11
  • 1
1
vote
1 answer

res.download not setting correct headers only in one express route

I have a main express route that once navigated to, should prompt a download of the specified file in res.download: app.get('/download/:fileid', (req, res) => { var connection = mysql.createConnection({ host : 'localhost', …
1
vote
1 answer

TypeError: Cannot read property 'send' of undefined in MERN

So in my MERN project in my router, I am trying to send some data so I can get afterwards on my react component so I can use that data. But I get this error when I run my code: TypeError: Cannot read property 'status' of undefined Here is my code: …
Michael Kitas
  • 239
  • 1
  • 2
  • 14
1
vote
2 answers

Understanding the .then of a fetch

I'm trying to understand the .then catch that is applied to fetch fetch. Currently I have the following POST request that I know works. When I examine the data variable there is an array of…
Jane Doe
  • 187
  • 1
  • 12
1
vote
0 answers

Curl double submission on attempt of echo

Currently the below code causes a resubmission of the JSON POST to the URL creating duplicate records server side. I have suspicions it may be how im attempting to display the results. $curl = curl_init(); curl_setopt_array($curl, array( …
Grew
  • 13
  • 4
1
vote
2 answers

Show error message with AJAX and Spring 3

I had a simple register form, and validation worked fine. Something like this: @RequestMapping(value = "/email", method = RequestMethod.POST) public String changeEmail(@Valid @ModelAttribute("editEmail") EditEmailForm editEmailForm, BindingResult…
Dawid
  • 644
  • 1
  • 14
  • 30
1
vote
1 answer

how to get paginated response schema based on serializer (drf-yasg)

Currently I'm using LimitOffsetPagination on drf, and documenting the API with drf-yasg. I wrote a View like this: class MyViewSet(GenericViewSet): @action(detail=False, methods=['get']) def submodel1(self, request): queryset =…
1
vote
1 answer

Sending list of images as response using Javascript

I am making an API that gets a list of image names, then it has to download them one by one from S3 bucket and then send them all as a response. The issue is that my images are being uploaded but it seems that when I put them in a list as base64 and…
Richard
  • 1,087
  • 18
  • 52
1
vote
0 answers

Braintree Paypal getting response "Merchant not found and status fail"

Have setup the brain-tree client and server Sdk, php as server side and client side is flutter. The error i am getting is this: Response of the payment {message: Merchant account not found, status: fail} full response error W/CameraBase(10618): An…
1
vote
2 answers

Create new Response from base64 image data with Javascript

I want to fake a response. I have the base64 string data of a png image. Now I want to make a response but It does not work. My code: const data = "data:image/png;base64,iVBORw0KGgoAAAA..."; const res = new Response(data, { status: 200, …
Tan Dat
  • 2,888
  • 1
  • 17
  • 39
1
vote
1 answer

How to send a response in a callBack

I'm pretty new to the fetch api and cant figure out why I can access response.json() locally but not once deployed. EDIT: Just making the question clearer. When my response is NOT ok, I want to send response.json() to my errorCallBack function. This…
user12557496
1 2 3
99
100