Questions tagged [server-response]
98 questions
2
votes
1 answer
How to localize server-side responses on the client side in iphone programming?
I am using Chinese in my app. I have made a Localizable.string file in English and one in Chinese.
I am doing it OK, and everything is working fine, but there are some string responses from the server. How can I convert them?
For example, "Account…

Chatar Veer Suthar
- 15,541
- 26
- 90
- 154
2
votes
1 answer
If server response is just a simple JSON, then why there are 5 different resources showing in my network tab?
I am learning node and wrote a simple app which returns just JSON data as response.
There is no any error but I am not getting why there are 5 different resources (content.min.css, favicon.ico, jsonview-core.css, options.png, etc) showing in my…

aagjalpankaj
- 1,160
- 1
- 15
- 25
2
votes
1 answer
how to parse JSON response from server and use it in comparison
I want to parse JSON response from server but I m unable to do it. please help me
server response for connection success is
Database connection success....{"server_response":[{"code":"reg_true","0":"message=>Registration Success...Thank…

Kashaf Ahmed
- 67
- 2
- 10
2
votes
1 answer
Dojo informative message sent after xhrPost
Let's say that a request is sent to server via xhrPost and server finds that request needs more information to be processed (for example a variable is missing), so, a response is sent back to client informing that request may have not been…

Ivo Silva
- 350
- 4
- 20
1
vote
1 answer
how to correctly receive a response from the server in flutter(dart)?
I can't process the response from the server correctly in flutter. The user is created successfully in the database. In the postman application, I also get a response from the server: {"success":true}. But for some reason a connection error is…

Xlain 8
- 21
- 1
1
vote
0 answers
How to return server response with output body not null?
When I return an exception, i can't return also the body.
Once I get an exception I have to return the output of my body and the error message.
I want that output is not null.
{
"output": null,
"errorMessages": {
"EXCEPTION": "Errors…

Adrian
- 11
- 1
1
vote
0 answers
How to check if server is responding in Swift 5
I'm looking for a Swift 5 version of something like the fileExists function (below). For context I have an app that is heavily dependent on interaction with a remote server. For resilience we have created a second remote server and want the app to…

Mitch
- 111
- 10
1
vote
2 answers
How to reduce the time_starttransfer (TTFB) with AWS EC2
My website is on AWS EC2.
I checked the TTFB (Time to First Byte) with this command:
curl --output /dev/null --silent --write-out…

MedMatrix
- 326
- 5
- 19
1
vote
1 answer
How to interpret server response for in-App purchase verifying receipt request?
I am using in App purchases in my application.
I am sending a request to the server for verifying the transaction receipt for the purchased product using the following method:
-(void)sendingRequestForReceipt: (SKPaymentTransaction *)transaction{
…

iPhoneDev
- 1,547
- 2
- 13
- 36
1
vote
1 answer
Image .onerror — Differentiate between server response 400 versus 200 but with a Content-Type that is not an image?
Given:
const img = document.getElementById('img-id');
img.onerror = function() { … };
img.src = new_url;
Changing the source of the image element may result in my very specific use case in either:
A server status response 400 Bad Request, or
A…

Serge Stroobandt
- 28,495
- 9
- 107
- 102
1
vote
0 answers
The Time To First Byte Still High
I tested my website in webpagetest.org and there are the result :
https://i.stack.imgur.com/3zXJp.png
https://i.stack.imgur.com/cQR67.png
I tried google it and finding a a way to solve the time to first byte problem but still it's showing poor…

evasim
- 109
- 10
1
vote
0 answers
PyQt5 - QWebEngineUrlRequestInterceptor for server respons content
For developing my browser application, I have installed a QWebEngineUrlRequestInterceptor, so I can filter the URLs being reuquested. I would like to now be able to have a similar thing but for the server response content ie a theoretical…

SamG101
- 488
- 1
- 7
- 18
1
vote
0 answers
Node.js: How to find out contents of a 400 bad request?
I'm building a server with Node.js. For several reasons, I can't fire valid requests from client side (using an app or Postman). But I can log out data on the server side. Currently, one route is buggy and returns "Error 400: bad request"s. How can…

J. Hesters
- 13,117
- 31
- 133
- 249
1
vote
2 answers
$.fancybox is not a function (fancybox pop up ajax response)
I want to pop up the ajax response by fancybox, I saw the network section in console, the response is ok. But I am getting $.fancybox is not a function.
thanks in advance!
$("#mysubmit").click(function(){
var myvar =…

Zain Deeb
- 39
- 8
1
vote
1 answer
http request taking too long time waiting for server response
We are using 3rd party website monitoring system to see if certain pages are loading well.
I often see monitor showing up that it took more than 8-9 seconds to load our checkout page as shown picture below:
our website is redirecting from non www…

ChrisP777
- 359
- 2
- 4
- 20