Questions tagged [httpresponse]

An HTTP response is a network message which is made of a body and metadata in the form of headers, according to HTTP specification. May also refer an HttpResponse class in software frameworks and libraries that automates relevant functionality

Filter by
Sorted by
Tagged with
-1 votes
0 answers
10 views

Invalid Definition exception when trying to fetch response in WebClient post call

I'm trying to call a service to POST something.. While fetching response, I'm facing this issue InvalidDefinitionException: Cannot construct instance of `javax.ws.rs.core.Response` (no Creators, like ...
NkTech's user avatar
  • 9
0 votes
1 answer
46 views

FastAPI Swagger Documentation Showing Incorrect Response Status?

The route implemented via FastAPI (code snippet below) is working fine. @app.post(path='/user/create/') async def create_user(response: Response, email: str = Form(), ...
Della's user avatar
  • 1,274
0 votes
0 answers
23 views

Why does the validation fail when importing master data into a sac dimension via postman?

Currently I am working on a problem in SAP Analytical Cloud. I am trying to load a dimension with master data via HTTP requests. For this I am using Postman on our test system. We do not want to ...
AlbertAusBerlin's user avatar
0 votes
0 answers
39 views

Getting NullReference Exception when trying to set this.Response.Headers

I have to set the "client-id" header in the API response. I have below controller function which is implemented in a class ProtectionControllerBase. "PolicyControllerBase : BaseClass&...
Aastha's user avatar
  • 41
0 votes
1 answer
22 views

html string with unicode utf-8 not getting printed to PDF file using Response object in C#

I have an HTML form which accepts data from the users. The user can be anyone from the world and so want the UTF-8 support so that users can enter data in any language - Arabic, Chinese, Japanese, etc....
Agnib's user avatar
  • 9
0 votes
1 answer
21 views

Next.js: Prevent file (as Buffer) in response from being parsed as JSON

I have a server using the Next.js API, whence I want to send the frontend a .csv file encoded in a locale-specific encoding (Shift_JIS). My server currently uses this approach: download(res: ...
haley's user avatar
  • 869
0 votes
0 answers
8 views

Convert HTTP JSON response to R data frame

I am using a web API to run my SQL queries on a GridDb instance. GridDB's web API sends query responses in JSON Array format. e.g. [{\"columns\":[{\"name\":\"Column_1\",\&...
Pratik Dwivedi's user avatar
0 votes
0 answers
23 views

Handling a FormFile response from .Net API in Angular Front End

I am facing a problem with handling of a response in Front End (FE). I am sending a file and an object as status but in FE as soon as the response is coming the file is being converted to object and ...
Tony's user avatar
  • 1
-1 votes
1 answer
52 views

Access file attachment from HTTP response with no body

This is essentially the same question as this one from last year, but for PHP (Laravel, specifically), and that question doesn’t have any answers. I have an external URL which should return an Excel ...
Janus Bahs Jacquet's user avatar
0 votes
0 answers
23 views

Response BinaryWrite does not allow the splitting column in export excel. It creates single column of entire data

When i try to export the Sitecore data into excel with multiple languages like Russian, Portuguese and so on i am facing data issue so i try to use Response.BinaryWrite option. All the language values ...
arun raj's user avatar
0 votes
0 answers
10 views

Separation of Field Inside the Result Response of Mapbox API

I need some help on how can I separate each data values inside the API response -> name from mapbox API in autocomplete`PlaceAutocompleteAddress(houseNumber=6b, street=Luthens Gränd, neighborhood=...
Bernadette DeJesus's user avatar
0 votes
1 answer
28 views

Reading custom httpHeader with HTTPURLResponse

let task = URLSession.shared.dataTask(with: url) { _, response, error in if let error { print(error.localizedDescription) return } if let response = ...
Filip Čorba's user avatar
0 votes
2 answers
33 views

Where is the parameter 'request' used in view.py in django

A newbie in Django web development. I've got a tiny but puzzling question about request / response in views.py. I self-learn Django online and here comes the http request / response section. The code ...
ronzenith's user avatar
  • 373
-1 votes
0 answers
41 views

api request is not executed, I use ktor

I'm trying to execute an API request, but nothing is output in the console. Just silence. I have thoughts that I have configured the server incorrectly. Please point it in the right direction. ...
Keibee's user avatar
  • 1
0 votes
1 answer
43 views

set http response status dinamically in mirth from destination channel

I'm using mirth v3.12.0 and I have set an http listener channel source that read some parameters from a query string, then with that paramters a query is created to get data from db. I can access the ...
Patrick Palmerini's user avatar
0 votes
0 answers
26 views

Django return render/httpresponse and Json into a single Jsonresponse

I'm new to Django and try to understand how to return 2 different kind of response type inside one return Jsonresponse : view.py def article_filter_mobile(request): # Here I'm trying to get the ...
Nico44044's user avatar
  • 139
-1 votes
1 answer
50 views

How to trigger HTTP request using SQL Server?

I have an URL that returns English translation for any word. Now I would like to trigger that link using pure SQL Server. I get an error, and I need your help to fix it with me. Here is my attempt: -- ...
Mohamed Abuelatta's user avatar
0 votes
0 answers
10 views

getWriter() has already been called for this response

Why can I only use response.getOutputStream() in a project, when I use response.getWriter(), it always throws exception, but I can use response.getWriter() in an old project, and after I used this ...
junxin zhu's user avatar
0 votes
0 answers
49 views

Using Grafana to execute a Script

I would like to use Grafana as the main interface for a program for the user, allowing them to run the program that spits out the data the grafana dashboard is visualizing. I've seen this problem here:...
ichen6's user avatar
  • 1
-1 votes
0 answers
17 views

When I call fetch with typescript, the result is undefined [duplicate]

this is my fetch function, it is working but i didn't get result return the function. protected CallFunction(vadetarihi) { var xfrs = this.getCookie('CSRF-TOKEN'); ...
Şebnem Seymen's user avatar
1 vote
2 answers
184 views

Next JS Unhandled Runtime Error Error: Cannot read properties of undefined (reading 'status')

if any one wants to see the code https://github.com/somduttmsm/portfolio While making a portfolio website with Next.js, this is some sort of error that I'm getting. I am using the latest version of ...
Somdutt Shukla's user avatar
1 vote
1 answer
21 views

Python-Django setting Multi-Index of Pandas DataFrame doesn't group/merge last index

When setting index of a pandas DataFrame, the last element of the columns array does not merge/group items together. Assuming the following test data: test_data = { "desk": ["DESK1&...
Jono's user avatar
  • 13
0 votes
1 answer
52 views

How can I see these specific response headers?

I am using Twitch's API to gather data for a web app I'm developing. Per the documentation, However, when I make the request in Postman, I don't see it. They are in the header response section (I ...
VertPin's user avatar
  • 11
0 votes
1 answer
20 views

AWS API Gateway HTTP API: How to modify the api response before it is returned to the api caller

In AWS API Gateway HTTP API, how can I modify the api response before it is returned to the api caller? Is it even possible?
YulePale's user avatar
  • 6,760
0 votes
1 answer
80 views

Extracting All API Results into a Single CSV File Azure Data Factory

I've got a JSON response from an API, and it's got a bunch of item information in a section called "Data." In this section, you'll find details like "ReleasePackageId," "Name,&...
vw96's user avatar
  • 19
0 votes
0 answers
24 views

How to get StatusCode for Initiator 'document' (HttpResponse)

I'm working on my .NET console application which reads a bunch of URLs and then it makes HTTP request to them. Once the request has been made, it takes its status code and saves it to other property. ...
rubber_duck's user avatar
0 votes
0 answers
14 views

Can I receive a custom response from the WebClient function `onStatus(HttpStatus::is2xxSuccessful, ...)`?

Can I receive a custom response, say Mono<MyResponseClass>, from the WebClient function onStatus(HttpStatus::is2xxSuccessful, ...)? I intend to: Send a POST request to a server API using ...
leo's user avatar
  • 357
1 vote
0 answers
77 views

HttpContext.Response.Body is empty while running ASP.NET Core 6 app on IIS using Audit.NET middleware

I have a ASP.NET Core 6 REST API application, installed on the on-premise server with IIS. In one of the environments, about 20% of queries fail due to an empty HttpContext.Response.Body object. I use ...
Pawel's user avatar
  • 21
0 votes
0 answers
67 views

Is there a way to use FastAPI StreamingResponse with bytes like object?

In FastApi the below code is used to stream large files def iterfile(file_name): # with open(file_name, mode="rb") as file_like: # yield from file_like # return ...
Sanket Wagh's user avatar
0 votes
1 answer
31 views

Is including null fields in an API response considered a breaking change?

I have changed the behaviour of an API (that previously did not include null fields) to include null fields. I was told that this was a breaking change but could not find reliable documentation on ...
yasmineek's user avatar
0 votes
0 answers
15 views

Django why function can't be stopped with redirect to a specific URL

In a function (create_mapping) I call another function (GetCsvHeadersAndSamples) that calls another function (get_csv) that tries to get a CSV file. I want to check in this last function if the file ...
Abpostman1's user avatar
0 votes
0 answers
13 views

How can I send Html page as response from servlet? [duplicate]

Hey I trying to educate myself, I need to send a html page as the response along with the js and css. @EnableAutoConfiguration @ComponentScan @RestController public class Main { public static ...
Karthick's user avatar
0 votes
0 answers
80 views

Cookies sent from Springboot application is unable to store in Browser. "Set-Cookie" header is present but devtools->application->cookie Tab is empty

Springboot backend -> sending Cookie with a token in response React frontend -> Cookie is present in the response header. BUT THE BROWSER IS NOT STORING THE COOKIE. Application -> Cookie ...
Paul Snehasish's user avatar
2 votes
2 answers
64 views

Return Bytes Array as HttpResonse with Image/png content type

I want to get an Image from some path, convert it into bytes and return it to the view to display it. I have a method that takes Image-name/extension and gets image from a directory converts into Byte ...
A Abdirahman's user avatar
0 votes
1 answer
35 views

ResponseEntity is not shown as it should

I am trying to get the correct statusCode from a response entity, but when I make the request with insomnia, the ResponseEntity is shown as an object but the actual statusCode its always 200, even ...
Nicolas Montero's user avatar
0 votes
2 answers
115 views

AttributeError: 'HttpResponse' object has no attribute 'data'

I'm currently building out some unit tests for my django application, however my test_views test keeps returning an error when run, and I'm unsure as to what it means and how to resolve it. This is ...
user5095215's user avatar
0 votes
0 answers
4 views

niether alert nor console working even the response in network is correct?

I have created a fetch-api which is getting a response back 0 but and then I have written code inside then block which will alert but its not working I have changed it with console also still no error ...
Abhinay Singh's user avatar
0 votes
1 answer
36 views

VBscript HttpRequest's ResponseText never update for the same URL

I was creating a Demo using VBsciprt, proving that "The Software" has the capability to send Http Request. I used an existing example that I wrote before: On Error Resume Next Dim o Set o = ...
Hongchen Lin's user avatar
0 votes
0 answers
35 views

Guzzle POST request returns 500 error - php

Whenever I call the API, I expect a response in the form of JSON object which contains all necessary payment processing information. But get a response like this: 500 {"description":"...
abdelnasser ahmed's user avatar
0 votes
0 answers
33 views

Http code 500 vs Http code 422 server crash scenario

Suppose I have a client that makes a http request to Service A then Service A makes a http request to Service B but Service B is down and not accepting requests. What should Service A return to the ...
nucleus's user avatar
  • 43
0 votes
0 answers
47 views

How to handle 404 client exception in python

API is returning the data if data is available or it is throwing 404client error, trying handle the exception but getting error's like imported both modules. 1. import requests and from urllib3 import ...
Gireesh's user avatar
0 votes
2 answers
61 views

Instantiate attrs class from dict with superfluous key/value pairs

I decorated a class using attrs.define and added all important attributes/fields. import attrs @attrs.define class MyAttrsClass: important1 = attrs.field(type = int) important2 = attrs.field(...
Wör Du Schnaffzig's user avatar
0 votes
1 answer
24 views

cast httpResponse to ResposeEntity is null C#

I have this code: private class TResponse { public bool IsSuccessful { get; set; } public string ErrorCode { get; set; } public string ErrorMessage { get; set; } } var response = client....
Curious Developer's user avatar
0 votes
0 answers
14 views

Tally is lagging till the time response comes

When ever I am hitting XML code for fetching some data from tally then my tally is lagging till the time the response comes. How do I fix the problem ? I am hitting the xml code in postman till the ...
NRUSINGHANATH SAHU's user avatar
-1 votes
1 answer
20 views

Send Request Until Get Response [duplicate]

How can I keep fetching the webpage while it didn't get response being in a loop? for (node of NodeList) { const url = node.getAttribute('href') const res = await fetch(url) //Code below won't ...
dvtpetrosyan's user avatar
1 vote
3 answers
58 views

how to have HTTP response with pipe throwing error?

I have a nestjs application in which I created a pipe to check if the value is a valid URL. If the URL is invalid, throw an error. This is used in a controller to save an item into the database. I ...
Dora's user avatar
  • 6,786
1 vote
1 answer
60 views

How to extract a specific key-value pair from a nested list without any label in Response body using Rest-Assured along with Java?

Here is an example of Nested List from which I need to extract the highlighted "userId" and "oneAccountId" values from the Response body: (There are two Keys with "userId"...
Jimil Patel's user avatar
0 votes
0 answers
40 views

Flutter Handling HTTP request flutter

handle exceptions that occur during HTTP requests by using a combination of try-catch blocks and error handling mechanisms. Here's an example of how you can handle exceptions in Flutter for HTTP ...
Kunj Bhuva's user avatar
0 votes
1 answer
68 views

Sequential user feedback from next.js api call

I have a long running process (~30sec) that calls several external apis. That process should run on the server in my next.js app. I created an /api route and things work, I however want to give the ...
niklas's user avatar
  • 2,887
0 votes
1 answer
75 views

How to check Request/Response Body in Blazemeter Test?

I was wondering if there is a way to check Request/Response body for transactions (real-time/post test) in Blazemeter. I can see there's a "Log" section, but I'd love to know if there's a ...
GorkhaliHero's user avatar

1
2 3 4 5
77